bes Updated for version 3.21.1
The Backend Server (BES) is the lower two tiers of the Hyrax data server
|
Interface class for the wrapper between libxml C SAX parser and our NCMLParser. More...
#include <SaxParser.h>
Public Member Functions | |
virtual void | onCharacters (const std::string &content)=0 |
virtual void | onEndDocument ()=0 |
virtual void | onEndElement (const std::string &name)=0 |
virtual void | onEndElementWithNamespace (const std::string &localname, const std::string &prefix, const std::string &uri)=0 |
virtual void | onParseError (std::string msg)=0 |
virtual void | onParseWarning (std::string msg)=0 |
virtual void | onStartDocument ()=0 |
virtual void | onStartElement (const std::string &name, const XMLAttributeMap &attrs)=0 |
virtual void | onStartElementWithNamespace (const std::string &localname, const std::string &prefix, const std::string &uri, const XMLAttributeMap &attributes, const XMLNamespaceMap &namespaces)=0 |
virtual void | setParseLineNumber (int) |
Interface class for the wrapper between libxml C SAX parser and our NCMLParser.
Also contains definition for AttrMap, which is how the attrs will be returned to the parser. The user should also be careful about making copies of any returned const reference objects (string or AttrMap) as they are only valid in memory for the scope of the handler calls!
Definition at line 48 of file SaxParser.h.
|
protected |
Definition at line 34 of file SaxParser.cc.
|
inlinevirtual |
Definition at line 53 of file SaxParser.h.
|
pure virtual |
Called when characters are encountered within an element. content is only valid for the call duration. Note: this will return all whitespace in the document as well, which makes it messy to use.
Implemented in ncml_module::NCMLParser, ncml_module::OtherXMLParser, and ncml_module::SimpleLocationParser.
|
pure virtual |
Implemented in ncml_module::NCMLParser, ncml_module::OtherXMLParser, and ncml_module::SimpleLocationParser.
|
pure virtual |
SAX2 End element with namespace information.
localname | the localname of the element |
prefix | the namespace prefix or "" on the element |
uri | the uri (or "") associated with the namespace of the element. |
Implemented in ncml_module::NCMLParser, and ncml_module::OtherXMLParser.
|
pure virtual |
An unrecoverable parse error occurred
Implemented in ncml_module::NCMLParser, ncml_module::OtherXMLParser, and ncml_module::SimpleLocationParser.
|
pure virtual |
A recoverable parse error occured.
Implemented in ncml_module::NCMLParser, ncml_module::OtherXMLParser, and ncml_module::SimpleLocationParser.
|
pure virtual |
name | name of the element |
attrs | a map of any attributes -> values. Volatile for this call. |
Implemented in ncml_module::NCMLParser, ncml_module::OtherXMLParser, and ncml_module::SimpleLocationParser.
|
pure virtual |
SAX2 start element call with gets namespace information.
localname | the localname of the element |
prefix | the namespace prefix of the element, or "" if none. |
uri | the uri for the namespace of the element. |
attributes | table of the attributes (excluding namespace attributes prefixed with xmlns) |
namespace | table of all the namespaces specification on this element |
Implemented in ncml_module::NCMLParser, and ncml_module::OtherXMLParser.
|
inlinevirtual |
Before any of the callbacks are issued, this function is called to let the implementing parser know what line number in the parse the next callback is being issued from to allow for more informative error messages. (Default impl is to ignore it now).
Reimplemented in ncml_module::NCMLParser.
Definition at line 113 of file SaxParser.h.