XMLSAX Class Reference

XML Document parser. More...

#include <mi32/xml.h>

List of all members.

Classes

struct  ATTRIBUTE

Public Member Functions

 XMLSAX ()
virtual ~XMLSAX ()
ERRVALUE Parse (const char *buffer, int size)
ERRVALUE Parse (const FILEPATH &filepath)

Private Member Functions

virtual void v_CDATABlock (const xmlChar *data, int len)
virtual void v_Characters (const xmlChar *ch, int len)
virtual void v_Comment (const xmlChar *ch)
virtual void v_EndDocument ()
virtual void v_EndElement (const xmlChar *name)
virtual void v_IgnorableWhitespace (const xmlChar *ch, int len)
virtual void v_StartDocument ()
virtual void v_StartElement (const xmlChar *name, const SIMPLE_ARRAY< ATTRIBUTE > &attributes)

Detailed Description

XML Document parser.

The SAX interface allows you to parse an XML file without building the entire DOM tree in memory. Instead, all it does is call virtual methods for various parts of the document and leaves it up to you what to do with them.


Constructor & Destructor Documentation

XMLSAX::XMLSAX (  ) 
virtual XMLSAX::~XMLSAX (  )  [virtual]

Member Function Documentation

ERRVALUE XMLSAX::Parse ( const char *  buffer,
int  size 
)

Parse an in-memory XML document.

ERRVALUE XMLSAX::Parse ( const FILEPATH filepath  ) 

Parse an XML document.

virtual void XMLSAX::v_CDATABlock ( const xmlChar *  data,
int  len 
) [private, virtual]

Will be called for CDATA blocks Important: Do NOT assume "data" is a null-terminated string.

virtual void XMLSAX::v_Characters ( const xmlChar *  ch,
int  len 
) [private, virtual]

Will be called for any characters other than tags (like the content of tags).

Important: Do NOT assume "ch" is a null-terminated string.

virtual void XMLSAX::v_Comment ( const xmlChar *  ch  )  [private, virtual]

Will be called for any characters other than tags (like the content of tags).

The string passed is null-terminated.

virtual void XMLSAX::v_EndDocument (  )  [private, virtual]

Will be called at the end of the document.

virtual void XMLSAX::v_EndElement ( const xmlChar *  name  )  [private, virtual]

Will be called for the closing tag of any element.

virtual void XMLSAX::v_IgnorableWhitespace ( const xmlChar *  ch,
int  len 
) [private, virtual]

Will be called when ignorable whitespace is parsed.

Important: Do NOT assume "ch" is a null-terminated string.

virtual void XMLSAX::v_StartDocument (  )  [private, virtual]

Will be called at the beginning of the document.

virtual void XMLSAX::v_StartElement ( const xmlChar *  name,
const SIMPLE_ARRAY< ATTRIBUTE > &  attributes 
) [private, virtual]

Will be called for the opening tag of any element.

Any data bewteen the start and end tags will be sent via the v_Characters() method.


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

Generated on Sun Oct 7 21:34:02 2012 for TNTsdk 2012 by  doxygen 1.6.1