Table 20-4 summarizes the methods of available through the NodeSet interface.
Table 20-4 Summary of NodeSet Methods; XPath Package
| Function | Summary |
|---|---|
| getNode
|
Get node given its index. |
| getSize
|
Get NodeSet size.
|
Returns a reference to the node.
NodeRef< Node>* getNode( ub4 idx) const;
| Parameter | Description |
|---|---|
idx |
index of the node in the set |
(NodeRef) reference to the node
The size of the node set.
ub4 getSize() const;
(ub4) node set size