XBinder XML Runtime  XBinder Version 3.0.x
Public Member Functions | List of all members
OSXMLAnyHandler Class Reference
Inheritance diagram for OSXMLAnyHandler:
OSXMLDefaultHandler OSXMLDefaultHandlerIF OSXMLContentHandler OSXMLErrorInfo

Public Member Functions

EXTXMLMETHOD OSXMLAnyHandler (OSXSDAnyTypeClass &msgData, OSRTContext *pContext, int level=0)
 
EXTXMLMETHOD OSXMLAnyHandler (OSXSDAnyTypeClass &msgData, OSRTContext *pContext, const OSUTF8CHAR *elemName)
 
EXTXMLMETHOD OSXMLAnyHandler (OSRTXMLString &msgData, OSRTContext *pContext, int level=0)
 
EXTXMLMETHOD OSXMLAnyHandler (OSRTXMLString &msgData, OSRTContext *pContext, const OSUTF8CHAR *elemName)
 
virtual EXTXMLMETHOD int startElement (const OSUTF8CHAR *const uri, const OSUTF8CHAR *const localname, const OSUTF8CHAR *const qname, const OSUTF8CHAR *const *attrs)
 Receive notification of the beginning of an element. More...
 
virtual EXTXMLMETHOD int characters (const OSUTF8CHAR *const chars, OSUINT32 length)
 
virtual EXTXMLMETHOD int endElement (const OSUTF8CHAR *const uri, const OSUTF8CHAR *const localname, const OSUTF8CHAR *const qname)
 Receive notification of the end of an element. More...
 
- Public Member Functions inherited from OSXMLDefaultHandler
 OSXMLDefaultHandler (OSRTContext *pContext, const OSUTF8CHAR *elemName=0, OSINT32 level=0)
 
virtual EXTXMLMETHOD int characters (const OSUTF8CHAR *const chars, unsigned int length)
 Receive notification of character data. More...
 
virtual EXTXMLMETHOD void startDocument ()
 
virtual EXTXMLMETHOD void endDocument ()
 
virtual EXTXMLMETHOD int finalize ()
 
virtual EXTXMLMETHOD void resetErrorInfo ()
 
virtual EXTXMLMETHOD void setErrorInfo (int status, const char *file=0, int line=0)
 
virtual EXTXMLMETHOD int getErrorInfo (int *status, const char **file, int *line)
 
OSINT16 getState ()
 This method returns the current state of the decoding process. More...
 
virtual void init (int level=0)
 
void setElemName (const OSUTF8CHAR *elemName)
 
OSBOOL isComplete ()
 
EXTXMLMETHOD void traceStartElement (const char *funcName, const OSUTF8CHAR *localName)
 
EXTXMLMETHOD void traceEndElement (const char *funcName, const OSUTF8CHAR *localName)
 
The virtual document handler interface

Additional Inherited Members

- Protected Attributes inherited from OSXMLDefaultHandler
OSRTCtxtPtr mpContext
 
const OSUTF8CHAR * mpElemName
 
OSINT32 mLevel
 
OSINT16 mStartLevel
 
OSINT16 mReqElemCnt
 
OSINT16 mCurrElemIdx
 
OSINT16 mState
 
struct EXTXMLCLASS OSXMLDefaultHandler::ErrorInfo errorInfo
 

Detailed Description

Definition at line 40 of file rtSaxCppAny.h.

Member Function Documentation

◆ endElement()

virtual EXTXMLMETHOD int OSXMLAnyHandler::endElement ( const OSUTF8CHAR *const  uri,
const OSUTF8CHAR *const  localname,
const OSUTF8CHAR *const  qname 
)
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

Reimplemented from OSXMLDefaultHandler.

◆ startElement()

virtual EXTXMLMETHOD int OSXMLAnyHandler::startElement ( const OSUTF8CHAR *const  uri,
const OSUTF8CHAR *const  localname,
const OSUTF8CHAR *const  qname,
const OSUTF8CHAR *const *  attrs 
)
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

Reimplemented from OSXMLDefaultHandler.


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