XMLBEANSXX  0.9.8
xmlbeansxx::LibXMLParser Class Reference

#include <LibXMLParser.h>

Inheritance diagram for xmlbeansxx::LibXMLParser:
Collaboration diagram for xmlbeansxx::LibXMLParser:

List of all members.

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

Detailed Description

Parse XML documents using libxml2 parser.


Constructor & Destructor Documentation


Member Function Documentation

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.

Unloads all grammars from libxml2 parser.

Implements xmlbeansxx::XmlParser.


Member Data Documentation

bool xmlbeansxx::LibXMLParser::initialized = false [static, private]
xmlSchemaPtr xmlbeansxx::LibXMLParser::schema [private]
xmlSchemaParserCtxtPtr xmlbeansxx::LibXMLParser::schemaParserCtxt [private]
xmlSchemaSAXPlugPtr xmlbeansxx::LibXMLParser::schemaPlug [private]
xmlSchemaValidCtxtPtr xmlbeansxx::LibXMLParser::validationCtxt [private]

The documentation for this class was generated from the following files: