xml.StaxReader.getNamespaceCount

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

Syntax

getNamespaceCount()
  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.