DOMNodeList
classin packageklyn.io.xml.dom
public class DOMNodeList extends ArrayList<DOMElement> implements NodeList
└ DOMNodeList
All Implemented Interfaces: NodeList

Element list compatible with both Klyn lists and DOM NodeList.

Example
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.
Inherited Properties
propertyInherited Properties from ArrayList: size
propertyInherited Properties from Object: type
propertyInherited Properties from Collection: size
Constructors
Modifier and Type Member Description
public DOMNodeList Creates an empty DOM element list.
Methods
Modifier and Type Member Description
public override 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.
Inherited Methods
methodInherited Methods from ArrayList: add, add, addAll, addAll, addAll, addAll, addAll, addAll, clear, count, indexOf, join, lastIndexOf, remove, removeAt, reserve, reverse, reverseNew, shuffle, sort, sortNew, toString
methodInherited Methods from Object: deepCopy, fromJson, hash, toDict, toJson, toMap, toString, toXml
methodInherited Methods from List: add, add, addAll, addAll, addAll, addAll, addAll, addAll, remove, removeAt, reverse, reverseNew, shuffle, sort, sortNew
methodInherited Methods from Collection: clear, count
Inherited Operators
operatorInherited Operators from ArrayList: operator in(item as T) as Boolean, operator+(readonly notnull left as ArrayList<T>, readonly notnull right as ArrayList<T>) as ArrayList<T>, operator+=(values as IList<T>) as Void, operator+=(values as Set<T>) as Void, operator+=(values as Tuple) as Void, operator[](index as Long) as T
operatorInherited Operators from List: operator+(notnull left as List<T>, notnull right as List<T>) as List<T>, operator+=(values as IList<T>) as Void, operator+=(values as Set<T>) as Void, operator+=(values as Tuple) as Void
operatorInherited Operators from Collection: operator in(item as T) as Boolean