Class XPathNSResolver


class XPathNSResolver
Namespace resolver.

See http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathNSResolver.

Authors:
Henrik Lindqvist <henrik.lindqvist@llamalab.com>
See also:
Defined in XPath.js

Function Summary
string lookupNamespaceURI(string p)
Look up a namespace URI by it’s prefix use in document.

Function Details

function lookupNamespaceURI

string lookupNamespaceURI(string p)
Look up a namespace URI by it’s prefix use in document.
Parameters:
p - xmlns: prefix, empty string for targetNamespace.
Returns:
associated namespace URI, or undefined if none is found.