afl::XercesXMLNode Class Reference

#include <xercesxmlnode.h>

Inheritance diagram for afl::XercesXMLNode:

afl::XMLNode List of all members.

Public Member Functions

 XercesXMLNode (XMLParser *parser, DOMNode *node)
virtual ~XercesXMLNode ()
virtual XMLNodegetFirstChild () const
virtual XMLNodegetNextSibling () const
virtual std::string getNamedAttribute (const std::string &name) const
virtual std::string getName () const
virtual std::string getText () const
virtual std::string toString () const

Detailed Description

a XMLNode implementation that uses the Xerces-C library


Constructor & Destructor Documentation

afl::XercesXMLNode::XercesXMLNode XMLParser parser,
DOMNode *  node
 

instantiates a wrapper for a Xerces-C node

Parameters:
parser the Xerces-C parser that created this node
node the Xerces-C node to wrap

virtual afl::XercesXMLNode::~XercesXMLNode  )  [virtual]
 

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


Member Function Documentation

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

Returns:
one of the descendents from this node.

Implements afl::XMLNode.

virtual std::string afl::XercesXMLNode::getName  )  const [virtual]
 

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

Implements afl::XMLNode.

virtual std::string afl::XercesXMLNode::getNamedAttribute const std::string &  name  )  const [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.

Implements afl::XMLNode.

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

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

Implements afl::XMLNode.

virtual std::string afl::XercesXMLNode::getText  )  const [virtual]
 

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

Implements afl::XMLNode.

virtual std::string afl::XercesXMLNode::toString  )  const [virtual]
 

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

Implements afl::XMLNode.


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