A XML DOM parser.
More...
#include <dom.h>
|
| std::shared_ptr< xercesc::DOMDocument > | parse (const boost::filesystem::path &inputSource, std::vector< boost::filesystem::path > *dependencies=nullptr, bool doXInclude=true) |
| |
|
void | resetCachedGrammarPool () |
| | reset all loaded grammars
|
| |
|
std::shared_ptr< xercesc::DOMDocument > | createDocument () |
| | create a empty document
|
| |
|
| static std::shared_ptr< DOMParser > | create (const std::variant< boost::filesystem::path, xercesc::DOMElement * > &xmlCatalog=nullptr) |
| |
| 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) |
| |
| static void | handleCDATA (xercesc::DOMElement *e) |
| |
|
|
| DOMParser (const std::variant< boost::filesystem::path, xercesc::DOMElement * > &xmlCatalog) |
| |
|
|
static void | handleXInclude (xercesc::DOMElement *&e, std::vector< boost::filesystem::path > *dependencies) |
| |
|
|
class | TypeDerivativeHandler |
| |
|
class | LocationInfoFilter |
| |
|
class | DOMParserUserDataHandler |
| |
|
class | EntityResolver |
| |
|
template<typename > |
| class | DOMDocumentWrapper |
| |
|
bool | isDerivedFrom (const xercesc::DOMNode *me, const FQN &baseTypeName) |
| |
◆ create()
| shared_ptr< DOMParser > MBXMLUtils::DOMParser::create |
( |
const std::variant< boost::filesystem::path, xercesc::DOMElement * > & |
xmlCatalog = nullptr | ) |
|
|
static |
Create DOM parser A none validating parser if xmlCatalog is empty or a nullptr. A validating parser if xmlCatalog defines a XML catalog file or a root XML element of a catalog
◆ handleCDATA()
| void MBXMLUtils::DOMParser::handleCDATA |
( |
xercesc::DOMElement * |
e | ) |
|
|
static |
handle CDATA sections Combine sucessive text nodes and CDATA sections even across processing instructions.
◆ parse()
| shared_ptr< DOMDocument > MBXMLUtils::DOMParser::parse |
( |
const boost::filesystem::path & |
inputSource, |
|
|
std::vector< boost::filesystem::path > * |
dependencies = nullptr, |
|
|
bool |
doXInclude = true |
|
) |
| |
Parse a XML document Track file dependencies if dependencies is not null. Allow XML XInclude if doXInclude is true.
◆ serialize()
| void MBXMLUtils::DOMParser::serialize |
( |
xercesc::DOMNode * |
n, |
|
|
const boost::filesystem::path & |
outputSource, |
|
|
bool |
prettyPrint = true |
|
) |
| |
|
static |
Serialize a document to a file. Helper function to write a node. This normalized the document before.
◆ serializeToString()
| void MBXMLUtils::DOMParser::serializeToString |
( |
xercesc::DOMNode * |
n, |
|
|
std::string & |
outputData, |
|
|
bool |
prettyPrint = true |
|
) |
| |
|
static |
Serialize a document to a memory (std::string). Helper function to write a node. This normalized the document before.
The documentation for this class was generated from the following files:
- /mbsim-env/openmbv/mbxmlutils/mbxmlutilshelper/dom.h
- /mbsim-env/openmbv/mbxmlutils/mbxmlutilshelper/dom.cc