Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

skExpatParser Class Reference

This class gives an interface to the Expat parser. More...

#include <skExpatParser.h>

List of all members.

Public Methods

skElementparse (istream& in)
 This method parses the given input stream. More...

skElementparse (const skString& in)
 This method parses an XML document stored within the given string. More...

 skExpatParser ()
 Construct a parser.

skElementparse (istream& in)
 This method parses the given input stream. More...

skElementparse (const skString& in)
 This method parses an XML document stored within the given string. More...


Detailed Description

This class gives an interface to the Expat parser.

It can be used to parse an XML document and return a Simkin Element class.


Member Function Documentation

skElement * skExpatParser::parse ( const skString & in )
 

This method parses an XML document stored within the given string.

The method returns a new Element object representing this document. If there is an error in the structure of the document, an skXMLParseException is thrown.

Exceptions:
skXMLParseException  
Parameters:
in   - the string to read from
Returns:
a new Element object representing the XML document in the string

skElement * skExpatParser::parse ( istream & in )
 

This method parses the given input stream.

If there is an error in the format, an skXMLParseException is thrown. Otherwise a new Element object is returned to represent the hierarchy in the XML document stored in the stream.

Exceptions:
skXMLParseException  
Parameters:
in   - the stream to read from
Returns:
a new Element object representing the XML document in the stream

skElement * skExpatParser::parse ( const skString & in )
 

This method parses an XML document stored within the given string.

The method returns a new Element object representing this document. If there is an error in the structure of the document, an skXMLParseException is thrown.

Exceptions:
skXMLParseException  
Parameters:
in   - the string to read from
Returns:
a new Element object representing the XML document in the string

skElement * skExpatParser::parse ( istream & in )
 

This method parses the given input stream.

If there is an error in the format, an skXMLParseException is thrown. Otherwise a new Element object is returned to represent the hierarchy in the XML document stored in the stream.

Exceptions:
skXMLParseException  
Parameters:
in   - the stream to read from
Returns:
a new Element object representing the XML document in the stream


The documentation for this class was generated from the following files:
Generated at Mon Nov 5 19:22:25 2001 for Simkin by doxygen1.2.1 written by Dimitri van Heesch, © 1997-2000