XMLDescendantNodeList
classin packageklyn.io.xml.dom
public class XMLDescendantNodeList implements NodeList
XMLDescendantNodeList
All Implemented Interfaces: NodeList

Live descendant query. Repeated reads reuse the materialized result until the queried subtree changes. The root itself is never part of the result.

Example
items = root.getElementsByTagName("item")
root.appendChild(document.createElement("item"))
print(items.length)  # Includes the newly inserted element.
Properties
Modifier and Type Member Description
public readonly property length
length as Int
Current number of matching descendants.
Methods
Modifier and Type Member Description
public item
item(index as Int) as Node
Returns a descendant in document order.