org.w3c.dom.xpath.XPathResult.iterateNext
method

    public iterateNext() as Node throws XPathException, DOMException

Description

Returns the next node from an iterator result.

Returns

Next node, or `null`.

Throws

- XPathException if this result is not an iterator.
- DOMException if the iterator has been invalidated.

Example

    node = result.iterateNext()
    while node is not null:
    print(node.nodeName)
    node = result.iterateNext()