XBinder XML Runtime  XBinder Version 3.0.x
List of all members
OSXMLContentHandler Class Referenceabstract

Receive notification of general document events. More...

#include <rtSaxCppParserIF.h>

Inheritance diagram for OSXMLContentHandler:
OSXMLDefaultHandlerIF OSXMLDefaultHandler OSXMLAnyHandler OSXMLAnyTypeHandler OSXMLSimpleTypeHandler OSXMLSoapHandler

Public Member Functions

The virtual document handler interface
virtual int characters (const OSUTF8CHAR *const chars, unsigned int length)=0
 Receive notification of character data. More...
 
virtual int endElement (const OSUTF8CHAR *const uri, const OSUTF8CHAR *const localname, const OSUTF8CHAR *const qname)=0
 Receive notification of the end of an element. More...
 
virtual int startElement (const OSUTF8CHAR *const uri, const OSUTF8CHAR *const localname, const OSUTF8CHAR *const qname, const OSUTF8CHAR *const *attrs)=0
 Receive notification of the beginning of an element. More...
 

Detailed Description

Receive notification of general document events.

Definition at line 112 of file rtSaxCppParserIF.h.

Member Function Documentation

◆ characters()

virtual int OSXMLContentHandler::characters ( const OSUTF8CHAR *const  chars,
unsigned int  length 
)
pure virtual

Receive notification of character data.

The Parser will call this method to report each chunk of character data. SAX parsers may return all contiguous character data in a single chunk, or they may split it into several chunks; however, all of the characters in any single event must come from the same external entity, so that the Locator provides useful information.

Parameters
charsThe characters from the XML document.
lengthThe length of chars.

Implemented in OSXMLDefaultHandler, OSXMLSoapHandler, and OSXMLSimpleTypeHandler.

◆ endElement()

virtual int OSXMLContentHandler::endElement ( const OSUTF8CHAR *const  uri,
const OSUTF8CHAR *const  localname,
const OSUTF8CHAR *const  qname 
)
pure virtual

Receive notification of the end of an element.

The SAX parser will invoke this method at the end of every element in the XML document; there will be a corresponding startElement() event for every endElement() event (even when the element is empty).

Parameters
uriThe URI of the asscioated namespace for this element
localnameThe local part of the element name
qnameThe QName of this element

Implemented in OSXMLDefaultHandler, OSXMLAnyHandler, OSXMLSoapHandler, OSXMLAnyTypeHandler, and OSXMLSimpleTypeHandler.

◆ startElement()

virtual int OSXMLContentHandler::startElement ( const OSUTF8CHAR *const  uri,
const OSUTF8CHAR *const  localname,
const OSUTF8CHAR *const  qname,
const OSUTF8CHAR *const *  attrs 
)
pure virtual

Receive notification of the beginning of an element.

The Parser will invoke this method at the beginning of every element in the XML document; 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
uriThe URI of the asscioated namespace for this element
localnameThe local part of the element name
qnameThe QName of this element
attrsThe attributes name/value pairs attached to the element, if any.
See also
endElement

Implemented in OSXMLDefaultHandler, OSXMLAnyHandler, OSXMLSoapHandler, OSXMLAnyTypeHandler, and OSXMLSimpleTypeHandler.


The documentation for this class was generated from the following file: