DomNodeList
class in package klyn.io.xml.dom

    public class DomNodeList extends ArrayList<DomElement> implements NodeList:

Object
└ ArrayList
└ DomNodeList
All Implemented Interfaces: NodeList

Element list compatible with both Klyn lists and DOM NodeList.

@example ```klyn import klyn.io.xml.dom

nodes = DomNodeList() print(nodes.length)

Properties

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

Properties inherited from ArrayList: size
Properties inherited from NodeList: length
Properties inherited from Object: type
Constructors

Modifier and Type | Member | Description
--- | --- | ---
public | DomNodeList `DomNodeList():` | Creates an empty DOM element list.

Methods

Modifier and Type | Member | Description
--- | --- | ---
public | add `add(item as DomElement) as Void:` | Adds an element to the DOM node list.
public | item `item(index as Int) as Node:` | Returns the node at an index.

Methods inherited from ArrayList: add, clear, count, join, remove, reverse, reverseNew, sort, sortNew, toString
Methods inherited from NodeList: item
Methods inherited from Object: fromJson, toDict, toJson, toXml
Methods inherited from List: add, remove, reverse, reverseNew, sort, sortNew
Methods inherited from Collection: count, toString
Operators inherited from ArrayList: operator in(item as T) as Boolean, operator[](index as Int) as T
Operators inherited from Collection: operator in(item as T) as Boolean