afl::XMLParser Class Reference

#include <xmlparser.h>

Inheritance diagram for afl::XMLParser:

afl::XercesParser List of all members.

Public Member Functions

virtual XMLNodeparseFile (const std::string &filename)=0
virtual XMLNodeparseString (const std::string &xml)=0

Static Public Member Functions

static XMLParsergetDefaultParser ()

Detailed Description

an interface that represents an XML parser


Member Function Documentation

static XMLParser* afl::XMLParser::getDefaultParser  )  [static]
 

Returns:
the default parser

virtual XMLNode* afl::XMLParser::parseFile const std::string &  filename  )  [pure virtual]
 

reads an XML file and returns a pointer to the root element of the DOM tree.

Parameters:
filename the file that stores the XML document
Returns:
a pointer to the root element. It is the client's responsibility to delete this node when done.
Exceptions:
InvalidDataFileException 

Implemented in afl::XercesParser.

virtual XMLNode* afl::XMLParser::parseString const std::string &  xml  )  [pure virtual]
 

parses an XML string and returns a pointer to the root element of the DOM tree.

Parameters:
xml the string that holds the XML document
Returns:
a pointer to the root element. It is the client's responsibility to delete this node when done.
Exceptions:
InvalidDataFileException 

Implemented in afl::XercesParser.


The documentation for this class was generated from the following file:
Generated on Fri Dec 22 07:17:52 2006 for afl by  doxygen 1.4.6