clan::DomNodeList Class Reference

DOM Node List class. More...

#include <dom_node_list.h>

Public Member Functions

 DomNodeList ()
 Constructs a DOM NodeList handle. More...
 
 DomNodeList (DomNode &node, const DomString &tag_name)
 Constructs a DomNodeList. More...
 
 DomNodeList (DomNode &node, const DomString &namespace_uri, const DomString &name, bool local_name=false)
 
 ~DomNodeList ()
 
void add_item (DomNode &to_add)
 Adds a DomNode to the list. More...
 
int get_length () const
 The number of nodes in the list. More...
 
DomNode item (unsigned long index) const
 Returns the indexth item in the collection. More...
 

Detailed Description

DOM Node List class.

The NodeList interface provides the abstraction of an ordered collection of nodes, without defining or constraining how this collection is implemented.

Constructor & Destructor Documentation

clan::DomNodeList::DomNodeList ( )

Constructs a DOM NodeList handle.

clan::DomNodeList::DomNodeList ( DomNode node,
const DomString tag_name 
)

Constructs a DomNodeList.

Parameters
node= Dom Node
tag_name= Dom String
clan::DomNodeList::DomNodeList ( DomNode node,
const DomString namespace_uri,
const DomString name,
bool  local_name = false 
)
clan::DomNodeList::~DomNodeList ( )

Member Function Documentation

void clan::DomNodeList::add_item ( DomNode to_add)

Adds a DomNode to the list.

int clan::DomNodeList::get_length ( ) const

The number of nodes in the list.

DomNode clan::DomNodeList::item ( unsigned long  index) const

Returns the indexth item in the collection.

If index is greater than or equal to the number of nodes in the list, this returns an empty node.


The documentation for this class was generated from the following file: