The lookupNamespaceURI method looks up the namespace URI associated to the given namespace prefix within an XPath expression evaluated by the XPathEvaluator interface.


DOMString XPathNSResolver.lookupNamespaceURI(prefix);


A DOMString representing the prefix to look for.

Return value

A DOMString representing the associated namespace URI or null if none is found.


Specification Status Comment
Document Object Model (DOM) Level 3 XPath Specification
The definition of 'XPathNSResolver.lookupNamespaceURI()' in that specification.
Recommendation Initial definition

Browser compatibility

No compatibility data found. Please contribute data for "api.XPathNSResolver.lookupNamespaceURI" (depth: 1) to the MDN compatibility data repository.

See also

Document Tags and Contributors

Contributors to this page: mdnwebdocs-bot, Sebastianz
Last updated by: mdnwebdocs-bot,