afl::XMLNode Class Reference

#include <xmlnode.h>

Inheritance diagram for afl::XMLNode:

afl::XercesXMLNode List of all members.

Public Member Functions

virtual ~XMLNode ()
virtual XMLNodegetFirstChild () const =0
virtual XMLNodegetNextSibling () const =0
virtual std::string getNamedAttribute (const std::string &name) const =0
virtual std::string getName () const =0
virtual std::string getText () const =0
virtual std::string toString () const =0
XMLParsergetParser () const

Protected Member Functions

 XMLNode (XMLParser *parser)

Detailed Description

an interface that represents an XMLNode


Constructor & Destructor Documentation

afl::XMLNode::XMLNode XMLParser parser  )  [protected]
 

creates a new XMLNode

Parameters:
parser the parser that created this node

virtual afl::XMLNode::~XMLNode  )  [inline, virtual]
 

destructor destroys this wrapper and all descendants. Only the root should be explicitly deleted


Member Function Documentation

virtual XMLNode* afl::XMLNode::getFirstChild  )  const [pure virtual]
 

Returns:
one of the descendents from this node.

Implemented in afl::XercesXMLNode.

virtual std::string afl::XMLNode::getName  )  const [pure virtual]
 

Returns:
the name of the node of the form: <name ...[/]> [</name>]

Implemented in afl::XercesXMLNode.

virtual std::string afl::XMLNode::getNamedAttribute const std::string &  name  )  const [pure virtual]
 

finds a named attribute of the form name="value" and returns the value

Parameters:
name the attribute to return.
Returns:
the named attribute's value (without quotation marks) or the empty string if the named attribute is empty or missing from the XML.

Implemented in afl::XercesXMLNode.

virtual XMLNode* afl::XMLNode::getNextSibling  )  const [pure virtual]
 

Returns:
a node that has a common immediate parent as this one or NULL if this is the last node in that parent.

Implemented in afl::XercesXMLNode.

XMLParser* afl::XMLNode::getParser  )  const
 

Returns:
a reference to the parser that created this node

virtual std::string afl::XMLNode::getText  )  const [pure virtual]
 

Returns:
the text that is between two name tags, not including any children nodes. <name>text</name>

Implemented in afl::XercesXMLNode.

virtual std::string afl::XMLNode::toString  )  const [pure virtual]
 

Returns:
the XML representation of this node including all descendents recursively.

Implemented in afl::XercesXMLNode.


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