XPathExpression

This interface is a compiled XPath expression that can be evaluated on a document or specific node to return information from its DOM tree.

MDN Reference

Functions

Link copied to clipboard
fun evaluate(contextNode: Node, type: Short = definedExternally, result: XPathResult? = definedExternally): XPathResult

The evaluate() method of the returns an XPathResult.