XML DOM snapshotItem() method
Definition and usage
The iterateNext() method returns a node that matches an XPath query.
Syntax:
snapshotItem(index)
Parameter | Description |
---|---|
index | The index of the node to be returned. |
Return value
The node at the specified index, if the index is less than 0 or greater than or equal to snapshotLength, is null.
Throw
This method will throw an exception if called when resultType is not UNORDERED_NODE_SNAPSHOT_TYPE or ORDERED_NODE_SNAPSHOT_TYPE.