om.DomNode.getAttributesCount

Returns the number of attributes in the DOM node.

Syntax

getAttributesCount()
  RETURNING result INTEGER

Usage

The getAttributesCount() method returns the number of attributes defined in the current node.

This method is typically used to scan all the attributes of a node by position, with the getAttributeName() and getAttributeValue() methods.

DEFINE node om.DomNode,
       index INTEGER
...
FOR index = 1 TO node.getAttributesCount()
    DISPLAY node.getAttributeName(index)
END FOR