28 parser =
new XercesDOMParser;
29 parser->setValidationScheme(XercesDOMParser::Val_Auto);
30 parser->setDoNamespaces(
false);
34 MemBufInputSource mb((
const XMLByte*)configFile.c_str(),strlen(configFile.c_str()),
"",
false);
38 parser->parse(configFile.c_str());
40 xercesc::DOMDocument* doc =
parser->getDocument();
46 parser->resetDocumentPool();
48 std::cout<<
"=== This is config file from getNewDocument ==== "<<std::endl;
50 MemBufInputSource mb((
const XMLByte*)configFile.c_str(),strlen(configFile.c_str()),
"",
false);
54 parser->parse(configFile.c_str());
56 xercesc::DOMDocument* doc =
parser->getDocument();
61 unsigned int tagsNum =
void getDocument(std::string configFile, bool UseDB=false)
Methor that parses the xml file configFile.
int countNodes(std::string tagName)
Returns the number of nodes with given name.
void getNewDocument(std::string configFile, bool UseDB=false)
Parses a new Document.
virtual ~DQMParserBase()
Destructor.
XMLCh * _toDOMS(std::string temp)