Help Center

Local Navigation

Object: NodeList

Availability

BlackBerry® Device Software version 4.6 or later

The NodeList object is an array that contains an ordered collection of nodes.

You can access an individual Node within a collection by its index position using NodeList.item() or you can index the object directly. For example, if you create an instance of a NodeList object called myNodeList, then specifying

myNodelist.item(2)

is equivalent to specifying

myNodelist[2]

NodeList properties

Property name

Type

Description

Status

Support level

Availability

length

unsigned long

Returns the number of Nodes in the list.

read only

DOM 2 Core

4.6 or later

NodeList methods

Method name

Description

Support level

Availability

item()

Returns the Node at the specified index in the collection.

DOM 2 Core

4.6 or later

Next topic: Object: Notation
Previous topic: Node methods

Was this information helpful? Send us your comments.