NodeList Interface

The NodeList interface provides the abstraction of an ordered collection of nodes, without defining how this collection is implemented.



IDL Definition

Interface NodeList {

        Node                     item(in unsigned long index)
        readonly attribute unsigned long        length
}

Semantic Requirements

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

  3. The item method returns the indexth item in the collection.
  4. If the index is greater than or equal to the number of nodes in the list, the item method returns null.
  5. Attributes

  6. The length attribute contains the number of items in the list.
  7. The range of valid child node indices for the length attribute is from 0 to length-1 inclusive.

If you have comments or suggestions, email me at mbrady@nist.gov