xml.DomNode.lookupPrefix

Looks up the prefix associated to a namespace URI, starting from the specified node.

Syntax

lookupPrefix(
   ns STRING )
  RETURNING prefix STRING
  1. ns is the namespace URI to look for.

Usage

Looks up the prefix associated to a namespace URI, starting from this node, where ns is the namespace URI to look for. Returns the prefix associated to this namespace URI, or NULL.

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