NodeSet Interface

Table 8-4 summarizes the methods available through the NodeSet interface.

Table 8-4 Summary of NodeSet Methods; XPath Package

Function Summary

getNode()

Get node given its index.

getSize()

Get NodeSet size.



getNode()

Returns a reference to the node.

Syntax

NodeRef< Node>* getNode(
   ub4 idx) const;
Parameter Description
idx
index of the node in the set

Returns

(NodeRef) reference to the node


getSize()

The size of the node set.

Syntax

ub4 getSize() const;

Returns

(ub4) node set size