DOMXPathNSResolver
class in package klyn.io.xml.xpath

    public class DOMXPathNSResolver extends Object implements XPathNSResolver:

Object
└ DOMXPathNSResolver
All Implemented Interfaces: XPathNSResolver

Namespace resolver backed by a DOM node.

The resolver walks from the supplied node to its ancestors and reads `xmlns` attributes, matching the DOM Level 3 XPath resolver behavior.

Example

    import klyn.io.xml.xpath

    resolver = DOMXPathNSResolver(document.documentElement)
    print(resolver.lookupNamespaceURI("xml"))

Inherited Properties
property Inherited Properties from Object: type
Constructors

Modifier and Type | Member | Description
--- | --- | ---
public | DOMXPathNSResolver `DOMXPathNSResolver(nodeResolver as Node):` | Creates a resolver relative to a DOM node.

Methods

Modifier and Type | Member | Description
--- | --- | ---
public | lookupNamespaceURI `lookupNamespaceURI(prefix as String) as String:` | Resolves a namespace prefix.

Inherited Methods
method Inherited Methods from Object: deepCopy, fromJson, toDict, toJson, toString, toXml
method Inherited Methods from XPathNSResolver: lookupNamespaceURI