The DomNode class / om.DomNode methods |
Returns the number of attributes in the DOM node.
getAttributesCount() RETURNING result INTEGER
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