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 with the appropriate error number.