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 NodeList: length
propertyInherited Properties from Object: type
Constructors
Modifier and Type Member Description
public 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.
Inherited Methods
methodInherited Methods from ArrayList: add, add, addAll, addAll, addAll, addAll, addAll, addAll, clear, count, indexOf, join, lastIndexOf, remove, removeAt, reverse, reverseNew, shuffle, sort, sortNew, toString
methodInherited Methods from NodeList: item
methodInherited Methods from Object: deepCopy, fromJson, toDict, toJson, toXml
methodInherited Methods from List: add, add, addAll, addAll, addAll, addAll, addAll, addAll, remove, removeAt, reverse, reverseNew, shuffle, sort, sortNew
methodInherited Methods from Collection: count, toString
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 Int) as T
operatorInherited Operators from List: operator+(left as List<T>, 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