om.DomNode.getAttributeValue

Returns the value of a DOM node attribute by position.

Syntax

getAttributeValue(
   index INTEGER )
  RETURNS STRING
  1. index is the index of the attribute, starts at 1.

Usage

The getAttributeValue() method returns the value of an attribute by position in the current node.

DOM node attribute names are case-sensitive.

If the attribute does not exist at the given position, the method returns NULL.

Example

DEFINE node om.DomNode
...
DISPLAY node.getAttributeValue(12)

For a complete example, see Example 2: Displaying a DOM tree recursively.