29 #ifndef __NCML_MODULE__SAX_PARSER_H__
30 #define __NCML_MODULE__SAX_PARSER_H__
37 class XMLAttributeMap;
38 class XMLNamespaceMap;
86 const std::string& localname,
87 const std::string& prefix,
88 const std::string& uri,
98 const std::string& localname,
99 const std::string& prefix,
100 const std::string& uri) = 0;
106 virtual void onCharacters(
const std::string& content) = 0;
virtual void onParseError(std::string msg)=0
An unrecoverable parse error occurred.
virtual void onEndElementWithNamespace(const std::string &localname, const std::string &prefix, const std::string &uri)=0
SAX2 End element with namespace information.
An abstract superclass for NCMLArray that handles the non-parameterized functionality and allows u...
virtual void onEndElement(const std::string &name)=0
virtual void onEndDocument()=0
virtual void onStartElementWithNamespace(const std::string &localname, const std::string &prefix, const std::string &uri, const XMLAttributeMap &attributes, const XMLNamespaceMap &namespaces)=0
SAX2 start element call with gets namespace information.
virtual void setParseLineNumber(int)
Before any of the callbacks are issued, this function is called to let the implementing parser know w...
virtual void onCharacters(const std::string &content)=0
Called when characters are encountered within an element.
virtual void onParseWarning(std::string msg)=0
A recoverable parse error occured.
virtual void onStartElement(const std::string &name, const XMLAttributeMap &attrs)=0
virtual void onStartDocument()=0
Interface class for the wrapper between libxml C SAX parser and our NCMLParser.