Packagedom.core
Interfacepublic interface NodeList

Introduced in: DOM 1 Core 

The NodeList interface provides the abstraction of an ordered collection of nodes, without defining or constraining how this collection is implemented. NodeList objects in the DOM are live.

The items in the NodeList are accessible via an integral index, starting from 0.

Note: NodeList objects in the DOM are live.

See also

MSDN - IXMLDOMNodeList
MDC - NodeList
W3C - NodeList


Public Properties
 PropertyDefined By
  DOM 1 Core length : Number
[read-only] The number of nodes in the list.
NodeList
Public Methods
 MethodDefined By
  
DOM 1 Core item(index:Number):Node
Returns the index item in the collection.
NodeList
  
Non-Standard nextNode():Node
Returns the next node in the collection.
NodeList
  
Non-Standard reset():void
Resets the iterator.
NodeList
Property Detail
DOM 1 Core lengthproperty
length:Number  [read-only]

Introduced in: DOM 1 Core 

The number of nodes in the list. The range of valid child node indices is 0 to length-1 inclusive.


Implementation
    public function get length():Number

See also

Method Detail
DOM 1 Core item()method
public function item(index:Number):Node

Introduced in: DOM 1 Core 

Returns the index item in the collection. If index is greater than or equal to the number of nodes in the list, this returns null.

Parameters

index:Number — Index into the collection.

Returns
Node — The node at the indexth position in the NodeList, or null if that is not a valid index.

See also

nextNode()method 
public function nextNode():Node

Non-standard (Microsoft)

Returns the next node in the collection.

Returns
Node — An IXMLDOMNode refers to the next node in the collection. Returns Null if there is no next node.

See also

reset()method 
public function reset():void

Non-standard (Microsoft)

Resets the iterator.

See also