DOM Node List class. More...
#include <dom_node_list.h>
| Public Member Functions | |
| DomNodeList () | |
| Constructs a DOM NodeList handle. | |
| DomNodeList (DomNode &node, const DomString &namespace_uri, const DomString &name, bool local_name=false) | |
| DomNodeList (DomNode &node, const DomString &tag_name) | |
| Constructs a DomNodeList. | |
| ~DomNodeList () | |
| void | add_item (DomNode &to_add) | 
| Adds a DomNode to the list. | |
| int | get_length () const | 
| The number of nodes in the list. | |
| DomNode | item (unsigned long index) const | 
| Returns the indexth item in the collection. | |
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.
 
| clan::DomNodeList::DomNodeList | ( | ) | 
Constructs a DOM NodeList handle.
Constructs a DomNodeList.
| 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 | ( | ) | 
| 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.