Packagedom.xpath
Interfacepublic interface XPathNSResolver

Introduced in: DOM 3 XPath 

The XPathNSResolver interface permit prefix strings in the expression to be properly bound to namespaceURI strings. XPathEvaluator can construct an implementation of XPathNSResolver from a node, or the interface may be implemented by any application.

See also

W3C - XPathNSResolver


Public Methods
 MethodDefined By
  
DOM 3 XPath lookupNamespaceURI(prefix:DOMString):DOMString
Look up the namespace URI associated to the given namespace prefix.
XPathNSResolver
Method Detail
DOM 3 XPath lookupNamespaceURI()method
public function lookupNamespaceURI(prefix:DOMString):DOMString

Introduced in: DOM 3 XPath 

Look up the namespace URI associated to the given namespace prefix. The XPath evaluator must never call this with a null or empty argument, because the result of doing this is undefined.

Parameters

prefix:DOMString — The prefix to look for.

Returns
DOMString — Returns the associated namespace URI or null if none is found.

See also