xml.StaxReader.getAttributeCount

Returns the number of XML attributes defined on the current XML node, or zero.

Syntax

getAttributeCount()
  RETURNING num INTEGER

Usage

This method is only valid on a START_ELEMENT node.

In case of error, the method throws an exception and sets the STATUS variable with the appropriate error number.