#include <DomNodeList.h>
DomNodeList
provides the abstraction of an ordered collection of nodes.
DomNodeLists are created by DomDocument::getElementsByTagName(), DomNode::getChildNodes().
The items in the DomNodeList
are accessible via an integral index, starting from 0.
DomNodeLists are "live", in that any changes to the document tree are immediately reflected in any DomNodeLists that may have been created for that tree.
Public Member Functions | |
DomNodeList () | |
ctor | |
DomNodeList (const DomNodeList ©) | |
copy ctor | |
virtual | ~DomNodeList () |
dtor | |
const DomNodeList & | operator= (const DomNodeList &assign) |
assign | |
DOM Level 1 | |
XmlSize | getLength () const |
Returns the number of items in the collection. | |
DomNode | item (XmlSize index) const |
Returns the index item in the collection. | |
Extensions | |
bool | isNull () const |
Check if this is a "null" node list. |
xmldom::DomNodeList::DomNodeList | ( | ) |
ctor
xmldom::DomNodeList::DomNodeList | ( | const DomNodeList & | copy | ) |
copy ctor
xmldom::DomNodeList::~DomNodeList | ( | ) | [virtual] |
dtor
const DomNodeList & xmldom::DomNodeList::operator= | ( | const DomNodeList & | assign | ) |
assign
XmlSize xmldom::DomNodeList::getLength | ( | ) | const |
Returns the number of items in the collection.
DomNode xmldom::DomNodeList::item | ( | XmlSize | index | ) | const |
Returns the index
item in the collection.
If index
is greater than or equal to the number of nodes in the list, this returns null
.
index | Index into the collection. |
index
th position in the DomNodeList
, or null
if that is not a valid index. bool xmldom::DomNodeList::isNull | ( | ) | const |
Check if this is a "null" node list.