zorba::SAX2_ContentHandler#include <zorba/sax2.h> Receive notification of events that result from serializing a query result as XML. This is an interface that is used to receive notifications resulting from parsing a query result that was serialized as XML.Instances of classes that implement this interface can be registered for a query by calling the XQuery::registerSAXHandler or XQuery::executeSAX function.Public Functions
Public Functionscharactersvoid characters(const String &aText)=0 Receive notification of character data. The serializer will call this method to report each chunk of character data. Parameters
endDocumentvoid endDocument()=0 Receive notification of the end of a document.
endElementvoid endElement(const String &aURI, const String &aLocalname, const String &aQName)=0 Receive notification of the end of an element. Zorba's serializerwill invoke this method at the end of every element in the serialized query result document; there will be a corresponding startElement() event for every endElement() event (even when the element is empty). Parameters
endPrefixMappingvoid endPrefixMapping(const String &aPrefix)=0 Receive notification of the end of an namespace prefix mapping.
Parameters
ignorableWhitespacevoid ignorableWhitespace(const String &aText)=0 Receive notification of ignorable whitespace in element content.
Parameters
processingInstructionvoid processingInstruction(const String &aTarget, const String &aData)=0 Receive notification of a processing instruction. The serializer will invoke this method once for each processing instruction found. Parameters
skippedEntityvoid skippedEntity(const String &aName)=0 Receive notification of a skipped entity.
Parameters
startDocumentvoid startDocument()=0 Receive notification of the beginning of a document.
startElementvoid startElement(const String &aURI, const String &aLocalname, const String &aQName, const SAX2_Attributes &aAttrs)=0 Receive notification of the beginning of an element. Zorba's serializer will invoke this method at the beginning of every element of the serialized query result; there will be a corresponding endElement() event for every startElement() event (even when the element is empty). All of the element's content will be reported, in order, before the corresponding endElement() event. Parameters
startPrefixMappingvoid startPrefixMapping(const String &aPrefix, const String &aURI)=0 Receive notification of the start of an namespace prefix mapping.
Parameters
~SAX2_ContentHandler ~SAX2_ContentHandler() Destructor.
|