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 ```klyn import klyn.io.xml.xpath

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

Properties inherited 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.

Methods inherited from Object: fromJson, toDict, toJson, toString, toXml
Methods inherited from XPathNSResolver: lookupNamespaceURI