Main Page   Class Hierarchy   Compound List   File List   Compound Members  

XMLParser Class Reference

an XML Parser. More...

#include <XMLParser.h>

Inheritance diagram for XMLParser:

Inheritance graph
[legend]
Collaboration diagram for XMLParser:

Collaboration graph
[legend]
List of all members.

Public Methods

 XMLParser ()
 Constructor.

virtual void Read (istream &is)
 Read xml data from a given stream.

Element Parse () throw (XMLParseException)
 Parse the xml data. More...


Protected Methods

void Init ()
 initialize.

void Clear ()
 destroy.

XMLParser& Copy (const XMLParser &rhs)
 copy.

bool Equals (const XMLParser &rhs) const
 operator== && operator!=.


Static Protected Methods

Expat Callbacks
void BeginHandler (void *userData, const XML_Char *name, const XML_Char **atts)
void EndHandler (void *userData, const XML_Char *name)
void TextHandler (void *userData, const XML_Char *s, int len)

Detailed Description

an XML Parser.

This class uses expat to parse the given xml stream and then builds an xml tree


Member Function Documentation

Element XMLParser::Parse ( ) throw (XMLParseException)
 

Parse the xml data.

Read() should be called before this so there is some data to parse

Returns:
the root of the xml tree


The documentation for this class was generated from the following file:
Generated at Thu May 3 00:44:05 2001 for libXMLParser by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001