XPathNSResolver
interface in package org.w3c.dom.xpath

    public interface XPathNSResolver:

XPathNSResolver

Resolves namespace prefixes used inside XPath expressions.

Example

    import org.w3c.dom.xpath

    class BooksResolver implements XPathNSResolver:
    public lookupNamespaceURI(prefix as String) as String:
    if prefix == "bk":
    return "urn:books"
    return null

Methods

Modifier and Type | Member | Description
--- | --- | ---
public | lookupNamespaceURI `lookupNamespaceURI(prefix as String) as String` | Looks up the namespace URI bound to a prefix.