CL_DomNodeList Class Reference
[clanCore XML]

DOM Node List class. More...

#include <dom_node_list.h>

List of all members.

Public Member Functions

Construction

 CL_DomNodeList ()
 Constructs a DOM NodeList handle.
 CL_DomNodeList (CL_DomNode &node, const CL_DomString &tag_name)
 Constructs a DomNodeList.
 CL_DomNodeList (CL_DomNode &node, const CL_DomString &namespace_uri, const CL_DomString &name, bool local_name=false)
 ~CL_DomNodeList ()
Attributes

int get_length () const
 The number of nodes in the list.
Operations

CL_DomNode item (unsigned long index) const
 Returns the indexth item in the collection.
void add_item (CL_DomNode &to_add)
 Adds a CL_DomNode to the list.

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

CL_DomNodeList::CL_DomNodeList (  ) 

Constructs a DOM NodeList handle.

CL_DomNodeList::CL_DomNodeList ( CL_DomNode node,
const CL_DomString tag_name 
)

Constructs a DomNodeList.

Parameters:
node = Dom Node
tag_name = Dom String
CL_DomNodeList::CL_DomNodeList ( CL_DomNode node,
const CL_DomString namespace_uri,
const CL_DomString name,
bool  local_name = false 
)
CL_DomNodeList::~CL_DomNodeList (  ) 

Member Function Documentation

void CL_DomNodeList::add_item ( CL_DomNode to_add  ) 

Adds a CL_DomNode to the list.

int CL_DomNodeList::get_length (  )  const

The number of nodes in the list.

CL_DomNode CL_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: