4#ifndef xmlBase_XmlParser_h
5#define xmlBase_XmlParser_h
9#include <xercesc/parsers/XercesDOMParser.hpp>
18 using XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument;
19 using XERCES_CPP_NAMESPACE_QUALIFIER XercesDOMParser;
31 DOMDocument*
parse(
const char*
const filename,
32 const std::string& docType=std::string(
""));
36 DOMDocument*
parse(
const std::string& buffer,
37 const std::string& docType=std::string(
"") );
41 void reset() {m_parser->reset();}
44 XercesDOMParser* m_parser;
49 bool m_errorsOccurred;
DOMDocument * parse(const char *const filename, const std::string &docType=std::string(""))
Parse an xml file, returning document node if successful.
void doSchema(bool doit)
Call this method to turn on schema processing (else it's off)