xml.StaxReader.findAttributeValue
Returns the value of an XML attribute of a given name and/or namespace.
Syntax
findAttributeValue(
name STRING,
ns STRING )
RETURNS STRING
- name defines the name of the attribute to retrieve. It cannot be NULL.
- ns defines the namespace URI of the attribute to retrieve, or NULL if the attribute is not namespace-qualified.
Usage
This method returns the value of an XML attribute of a given name and/or namespace on the current XML node, where name is the name of the attribute and ns is the namespace or is NULL if not namespace-qualified.
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).