om.NodeList.item
Returns a DOM node element by position in the node list.
Syntax
item( index INTEGER )
RETURNS om.DomNode
- index is the ordinal position of the node in the list.
Usage
The item()
method returns the om.DomNode
object
at the position specified.
First element is at position 1.
If there is no element at the specified index, the method returns NULL
.
Example
DEFINE list om.NodeList,
node om.DomNode
...
LET node = list.item(12)
For a complete example, see Example 1: Search nodes by tag name.