XPathExpression
interface in package org.w3c.dom.xpath

    public interface XPathExpression:

XPathExpression

Compiled and namespace-resolved XPath expression.

Example

    import klyn.io.xml.xpath
    import org.w3c.dom.xpath

    expression = DOMXPathEvaluator().createExpression("//book/title", null)
    titles = expression.evaluate(document, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null)

Methods

Modifier and Type | Member | Description
--- | --- | ---
public | evaluate `evaluate(contextNode as Node, type as Int, result as XPathResult) as XPathResult throws XPathException, DOMException` | Evaluates this expression against a context node.