A XML DOM parser. More...
#include <dom.h>
Public Member Functions | |
std::shared_ptr < xercesc::DOMDocument > | parse (const boost::filesystem::path &inputSource, std::vector< boost::filesystem::path > *dependencies=NULL) |
Parse a XML document. | |
void | resetCachedGrammarPool () |
reset all loaded grammars | |
std::shared_ptr < xercesc::DOMDocument > | createDocument () |
create a empty document | |
Static Public Member Functions | |
static std::shared_ptr< DOMParser > | create (const std::set< boost::filesystem::path > &schemas={}) |
Create DOM parser. | |
static void | serialize (xercesc::DOMNode *n, const boost::filesystem::path &outputSource, bool prettyPrint=true) |
static void | serializeToString (xercesc::DOMNode *n, std::string &outputData, bool prettyPrint=true) |
Private Member Functions | |
void | loadGrammar (const boost::filesystem::path &schemaFilename) |
void | registerGrammar (const std::shared_ptr< DOMParser > &nonValParser, const boost::filesystem::path &schemaFilename) |
DOMParser (const std::set< boost::filesystem::path > &schemas) | |
void | handleXIncludeAndCDATA (xercesc::DOMElement *&e, std::vector< boost::filesystem::path > *dependencies=NULL) |
Private Attributes | |
xercesc::DOMImplementation * | domImpl |
std::shared_ptr < xercesc::DOMLSParser > | parser |
std::weak_ptr< DOMParser > | me |
std::map< FQN, xercesc::XSTypeDefinition * > | typeMap |
DOMErrorPrinter | errorHandler |
LocationInfoFilter | locationFilter |
TypeDerivativeHandler | typeDerHandler |
EntityResolver | entityResolver |
std::map< std::string, boost::filesystem::path > | registeredGrammar |
Static Private Attributes | |
static const std::string | domParserKey |
static DOMParserUserDataHandler | userDataHandler |
Friends | |
class | TypeDerivativeHandler |
class | LocationInfoFilter |
class | DOMParserUserDataHandler |
class | EntityResolver |
template<typename > | |
class | DOMDocumentWrapper |
bool | isDerivedFrom (const xercesc::DOMNode *me, const FQN &baseTypeName) |
A XML DOM parser.
|
static |
Serialize a document to a file. Helper function to write a node. This normalized the document before.
|
static |
Serialize a document to a memory (std::string). Helper function to write a node. This normalized the document before.