16 using namespace xercesc;
30 parser =
new XercesDOMParser;
31 parser->setValidationScheme(XercesDOMParser::Val_Auto);
32 parser->setDoNamespaces(
false);
36 MemBufInputSource mb((
const XMLByte*)configFile.c_str(),strlen(configFile.c_str()),
"",
false);
40 parser->parse(configFile.c_str());
42 xercesc::DOMDocument*
doc =
parser->getDocument();
48 parser->resetDocumentPool();
50 std::cout<<
"=== This is config file from getNewDocument ==== "<<std::endl;
52 MemBufInputSource mb((
const XMLByte*)configFile.c_str(),strlen(configFile.c_str()),
"",
false);
56 parser->parse(configFile.c_str());
58 xercesc::DOMDocument*
doc =
parser->getDocument();
63 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)