Interface XPathEvaluator

    The XPathEvaluator interface allows to compile and evaluate XPath expressions.

    MDN Reference

    interface XPathEvaluator {
        createExpression(
            expression: string,
            resolver?: XPathNSResolver,
        ): XPathExpression;
        createNSResolver(nodeResolver: Node): Node;
        evaluate(
            expression: string,
            contextNode: Node,
            resolver?: XPathNSResolver,
            type?: number,
            result?: XPathResult,
        ): XPathResult;
    }
    Hierarchy

    Methods