klyn.io.xml.dom.DOMNodeList.item
method

    public item(index as Int) as Node:

Description

Returns the node at an index.

Parameters

Parameter | Description
--- | ---
`index` | Zero-based node index.

Returns

Node at the index, or null when the index is out of range.

Example

    nodes = DOMNodeList()
    nodes.add(DOMElement("item", DOMDocument()))
    print((nodes.item(0) as DOMElement).tagName)