xml.StaxReader.getNamespaceCount

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

Syntax

getNamespaceCount()
  RETURNS INTEGER

Usage

This method returns the number of namespace declarations in the current XML node, or zero if none.

This method is only valid on a START_ELEMENT node.

In case of error, the method throws an exception and sets the status variable. Depending on the error, a human-readable description of the problem is available in the sqlca.sqlerrm register. See Error handling in GWS calls (status).