om.NodeList.getLength
Returns the number of elements in the node list.
Syntax
getLength()
RETURNS INTEGER
- node is a reference to a node.
Usage
The getLength()
method
returns the size of the node list.
Query the node list for elements with the item()
method, in the range 1 to
getLength()
.
Example
DEFINE list om.NodeList
...
DISPLAY list.getLength()
For a complete example, see Example 1: Search nodes by tag name.