SGNodeList Class

When traversing the node hierarchy, it is sometimes useful to get a list of all of the child nodes of a specific node. The SGNodeList object, returned by SGNode.childNodes, provides a list of child nodes including methods that allow the user to access nodes in the list easily.

Methods

Name

Description

item Method 

Provides direct access to a node in the list.

nextNode Method 

Provides a sequential access to the list of nodes.

reset Method 

Resets the list to its beginning.

Properties

Name

Description

length Property 

The length of the list.