Programmer's Guide > Interfaces > W3C Node interface > lookupNamespacePrefix method
  
lookupNamespacePrefix method
Look up the prefix associated to the given namespace URI, starting from this node.
lookupNamespacePrefix(namespaceURI, useDefault )
Parameters
StringnamespaceURI
The namespace URI to look for.
booleanuseDefault
Indicates if the lookup mechanism should take into account the default namespace or not.
Returns
String. Returns an associated namespace prefix if found, null if none is found and useDefault is false, or null if not found or it is the default namespace and useDefault is true. If more than one prefix are associated to the namespace prefix, the returned namespace prefix is implementation dependent.