Ghidra Decompiler Analysis Engine
|
The SAX interface for parsing XML documents. More...
#include <xml.hh>
Public Member Functions | |
virtual void | setDocumentLocator (Locator locator)=0 |
Set the Locator object for documents. | |
virtual void | startDocument (void)=0 |
Start processing a new XML document. | |
virtual void | endDocument (void)=0 |
End processing for the current XML document. | |
virtual void | startPrefixMapping (const string &prefix, const string &uri)=0 |
Start a new prefix to namespace URI mapping. | |
virtual void | endPrefixMapping (const string &prefix)=0 |
Finish the current prefix. | |
virtual void | startElement (const string &namespaceURI, const string &localName, const string &qualifiedName, const Attributes &atts)=0 |
Callback indicating a new XML element has started. More... | |
virtual void | endElement (const string &namespaceURI, const string &localName, const string &qualifiedName)=0 |
Callback indicating parsing of the current XML element is finished. More... | |
virtual void | characters (const char *text, int4 start, int4 length)=0 |
Callback with raw characters to be inserted in the current XML element. More... | |
virtual void | ignorableWhitespace (const char *text, int4 start, int4 length)=0 |
Callback with whitespace character data for the current XML element. More... | |
virtual void | setVersion (const string &version)=0 |
Set the XML version as specified by the current document. More... | |
virtual void | setEncoding (const string &encoding)=0 |
Set the character encoding as specified by the current document. More... | |
virtual void | processingInstruction (const string &target, const string &data)=0 |
Callback for a formal processing instruction seen in the current document. More... | |
virtual void | skippedEntity (const string &name)=0 |
Callback for an XML entity skipped by the parser. More... | |
virtual void | setError (const string &errmsg)=0 |
Callback for handling an error condition during XML parsing. More... | |
The SAX interface for parsing XML documents.
This is the formal interface for handling the low-level string pieces of an XML document as they are scanned by the parser.
|
pure virtual |
Callback with raw characters to be inserted in the current XML element.
text | is an array of character data being inserted. |
start | is the first character within the array to insert. |
length | is the number of characters to insert. |
Implemented in TreeHandler.
|
pure virtual |
Callback indicating parsing of the current XML element is finished.
namespaceURI | is the namespace to which the element belongs |
localName | is the local name of the new element |
qualifiedName | is the fully qualified name of the element. |
Implemented in TreeHandler.
|
pure virtual |
Callback with whitespace character data for the current XML element.
text | is an array of character data that can be inserted. |
start | is the first character within the array to insert. |
length | is the number of characters to insert. |
Implemented in TreeHandler.
|
pure virtual |
Callback for a formal processing instruction seen in the current document.
target | is the target instruction to process |
data | is (optional) character data for the instruction |
Implemented in TreeHandler.
|
pure virtual |
Set the character encoding as specified by the current document.
encoding | is the parsed encoding string |
Implemented in TreeHandler.
|
pure virtual |
Callback for handling an error condition during XML parsing.
errmsg | is a message describing the error condition |
Implemented in TreeHandler.
|
pure virtual |
Set the XML version as specified by the current document.
version | is the parsed version string |
Implemented in TreeHandler.
|
pure virtual |
Callback for an XML entity skipped by the parser.
name | is the name of the entity being skipped |
Implemented in TreeHandler.
|
pure virtual |
Callback indicating a new XML element has started.
namespaceURI | is the namespace to which the new element belongs |
localName | is the local name of the new element |
qualifiedName | is the fully qualified name of the new element |
atts | is the set of (previously parsed) attributes to attach to the new element |
Implemented in TreeHandler.