29 #ifndef __NCML_MODULE__OTHER_XML_PARSER_H__
30 #define __NCML_MODULE__OTHER_XML_PARSER_H__
84 const std::string& localname ,
85 const std::string& prefix,
86 const std::string& uri,
91 const std::string& localname,
92 const std::string& prefix,
93 const std::string& uri);
103 void appendOpenStartElementTag(
const std::string& localname,
const std::string& prefix);
112 void appendCloseStartElementTag();
115 void appendEndElementTag(
const string& qname);
126 std::string _otherXML;
virtual ~OtherXMLParser()
int getParseDepth() const
Get the current parse depth (how many elements we've opened with onStartElement and not closed yet) I...
virtual void onParseWarning(std::string msg)
A recoverable parse error occured.
virtual void onEndDocument()
An abstract superclass for NCMLArray that handles the non-parameterized functionality and allows u...
virtual void onStartDocument()
virtual void onEndElementWithNamespace(const std::string &localname, const std::string &prefix, const std::string &uri)
SAX2 End element with namespace information.
virtual void onStartElement(const std::string &name, const XMLAttributeMap &attrs)
const std::string & getString() const
Get the parsed data as big string that we've been parsing in.
virtual void onCharacters(const std::string &content)
Called when characters are encountered within an element.
Class used to handle parsing in an attribute of type=="OtherXML" which basically just has to keep app...
void reset()
Reset the string and depth so we can start parsing from scratch again.
virtual void onStartElementWithNamespace(const std::string &localname, const std::string &prefix, const std::string &uri, const XMLAttributeMap &attributes, const XMLNamespaceMap &namespaces)
SAX2 start element call with gets namespace information.
virtual void onEndElement(const std::string &name)
Interface class for the wrapper between libxml C SAX parser and our NCMLParser.
virtual void onParseError(std::string msg)
An unrecoverable parse error occurred.