Back to Contents


The DomNodeList class

Summary:

See also: The Genero Web Services XML Extension Library


Syntax

The DomNodeList class provides methods to manipulate a list of DomNode objects. You can create a DomNodeList object using selection methods in the DomDocument and DomNode classes. The relationship between the DomNode objects in the list depends on the method used to create the DomNodeList object. Notice that status is set to zero after a successful method call.

Syntax

xml.DomNodeList


Methods

Object Methods
Name Description
getCount() RETURNING INTEGER Returns the number of DomNode objects in a DomNodeList object.
getItem(pos INTEGER) RETURNING xml.DomNode Returns the DomNode object at a given position in a DomNodeList object, where pos is the position of the DomNode object to return (Index starts at 1); Returns the DomNode object at the given position in this DomNodeList object, or NULL.
Throws an exception in case of errors, and updates status with an error code.

Back to the top