NodeList
interface in package org.w3c.dom

    public interface NodeList:

NodeList

Ordered list of DOM nodes.

    import org.w3c.dom

    children as NodeList = document.childNodes
    print(children.length)

Properties

Modifier and Type | Member | Description
--- | --- | ---
public readonly property | length `length as Int` | Number of nodes in this list.

Methods

Modifier and Type | Member | Description
--- | --- | ---
public | item `item(index as Int) as Node` | Returns the node at the given zero-based index, or null when the index is outside the list.