XMLBEANSXX
0.9.8
|
#include <LibXMLParser.h>
Public Member Functions | |
LibXMLParser () | |
LibXMLParser (const XmlOptions &options) | |
virtual | ~LibXMLParser () |
virtual void | parse (std::istream &in, XmlObject &documentRoot) |
virtual void | parse (const std::string &in, XmlObject &documentRoot) |
void | loadGrammars (const std::vector< std::string > &fileNames) |
Loads grammars into libxml2 parser from specified file names. | |
void | loadGrammar (const std::string &fileName) |
Loads grammar into libxml2 parser from specified file name. | |
void | unloadGrammars () |
Unloads all grammars from libxml2 parser. | |
Public Attributes | |
xmlSAXHandlerPtr | saxHandlerPtr |
Private Member Functions | |
void | init () |
std::string | generateErrorMessage (xmlErrorPtr) |
Private Attributes | |
xmlSchemaParserCtxtPtr | schemaParserCtxt |
xmlSchemaPtr | schema |
xmlSchemaValidCtxtPtr | validationCtxt |
xmlSchemaSAXPlugPtr | schemaPlug |
Static Private Attributes | |
static bool | initialized = false |
Parse XML documents using libxml2 parser.
xmlbeansxx::LibXMLParser::LibXMLParser | ( | const XmlOptions & | options | ) |
xmlbeansxx::LibXMLParser::~LibXMLParser | ( | ) | [virtual] |
string xmlbeansxx::LibXMLParser::generateErrorMessage | ( | xmlErrorPtr | error | ) | [private] |
void xmlbeansxx::LibXMLParser::init | ( | ) | [private] |
xsi_ns = XmlBeans::xsi_ns();
void xmlbeansxx::LibXMLParser::loadGrammar | ( | const std::string & | fileName | ) | [virtual] |
Loads grammar into libxml2 parser from specified file name.
Implements xmlbeansxx::XmlParser.
void xmlbeansxx::LibXMLParser::loadGrammars | ( | const std::vector< std::string > & | fileNames | ) | [virtual] |
Loads grammars into libxml2 parser from specified file names.
Implements xmlbeansxx::XmlParser.
virtual void xmlbeansxx::LibXMLParser::parse | ( | std::istream & | in, |
XmlObject & | documentRoot | ||
) | [virtual] |
Parses using some parser an xml document from std::istream to some XmlDocument. If XmlOptions validation is set, then uses schema validator (apropriate grammars should be loaded using eg. loadGrammar method).
Implements xmlbeansxx::XmlParser.
void xmlbeansxx::LibXMLParser::parse | ( | const std::string & | in, |
xmlbeansxx::XmlObject & | documentRoot | ||
) | [virtual] |
cursor = Null();
Implements xmlbeansxx::XmlParser.
void xmlbeansxx::LibXMLParser::unloadGrammars | ( | ) | [virtual] |
Unloads all grammars from libxml2 parser.
Implements xmlbeansxx::XmlParser.
bool xmlbeansxx::LibXMLParser::initialized = false [static, private] |
xmlSAXHandlerPtr xmlbeansxx::LibXMLParser::saxHandlerPtr |
xmlSchemaPtr xmlbeansxx::LibXMLParser::schema [private] |
xmlSchemaParserCtxtPtr xmlbeansxx::LibXMLParser::schemaParserCtxt [private] |
xmlSchemaSAXPlugPtr xmlbeansxx::LibXMLParser::schemaPlug [private] |
xmlSchemaValidCtxtPtr xmlbeansxx::LibXMLParser::validationCtxt [private] |