public class XMLDescendantNodeList implements NodeList:
Live descendant query. Repeated reads reuse the materialized result until the queried subtree changes. The root itself is never part of the result.
items = root.getElementsByTagName("item")
root.appendChild(document.createElement("item"))
print(items.length) # Includes the newly inserted element.| Modifier and Type | Member | Description |
|---|---|---|
| public readonly property | lengthlength as Int: |
Current number of matching descendants. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | item | Returns a descendant in document order. |