Name

lookupNamespaceURI: prefix(3)

Synopsis

This method searches for the namespace URI associated with the given namespace prefix, starting with the node on which it is invoked. It then recursively searches parent nodes until the prefix is located. The return value is a DOMString containing the namespace URI associated with the prefix if it is found; otherwise, the method returns null.

Argument

prefix: DOMString

The namespace prefix to be located.

Java binding

public String lookupNamespaceURI(String prefix);

Get XML in a Nutshell, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.