XMLBEANSXX
0.9.8
|
#include <XercesParser.h>
Public Member Functions | |
XercesParser () | |
XercesParser (const XmlOptions &opts) | |
virtual | ~XercesParser () |
virtual void | parse (std::istream &in, XmlObject &documentRoot) |
virtual void | parse (const std::string &in, XmlObject &documentRoot) |
virtual void | loadGrammars (const std::vector< std::string > &fileNames) |
virtual void | loadGrammar (const std::string &fileName) |
virtual void | unloadGrammars () |
Private Member Functions | |
XMLBEANSXX_STATIC_LOGGER_PTR (log) | |
void | init (bool reinit=false) |
void | updateOptions () |
Private Attributes | |
std::auto_ptr < XERCES_CPP_NAMESPACE::SAX2XMLReader > | sax2 |
std::auto_ptr< MySAX2Handler > | handler |
std::auto_ptr < xercesc::XMLGrammarPool > | grammarPool |
Transcoder | transcoder |
Friends | |
class | MySAX2Handler |
xmlbeansxx::XercesParser::XercesParser | ( | const XmlOptions & | opts | ) |
xmlbeansxx::XercesParser::~XercesParser | ( | ) | [virtual] |
void xmlbeansxx::XercesParser::init | ( | bool | reinit = false | ) | [private] |
void xmlbeansxx::XercesParser::loadGrammar | ( | const std::string & | fileName | ) | [virtual] |
Loads grammar into memory from specified file name
Implements xmlbeansxx::XmlParser.
void xmlbeansxx::XercesParser::loadGrammars | ( | const std::vector< std::string > & | fileNames | ) | [virtual] |
Loads grammars into memory from specified file names
Implements xmlbeansxx::XmlParser.
virtual void xmlbeansxx::XercesParser::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::XercesParser::parse | ( | const std::string & | in, |
XmlObject & | documentRoot | ||
) | [virtual] |
Implements xmlbeansxx::XmlParser.
void xmlbeansxx::XercesParser::unloadGrammars | ( | ) | [virtual] |
Unloads all grammars from memory
Implements xmlbeansxx::XmlParser.
void xmlbeansxx::XercesParser::updateOptions | ( | ) | [private] |
xmlbeansxx::XercesParser::XMLBEANSXX_STATIC_LOGGER_PTR | ( | log | ) | [private] |
friend class MySAX2Handler [friend] |
std::auto_ptr<xercesc::XMLGrammarPool> xmlbeansxx::XercesParser::grammarPool [private] |
std::auto_ptr<MySAX2Handler> xmlbeansxx::XercesParser::handler [private] |
std::auto_ptr<XERCES_CPP_NAMESPACE::SAX2XMLReader> xmlbeansxx::XercesParser::sax2 [private] |