klyn.io.xml.xpath.DOMXPathExpression.DOMXPathExpression
constructor

    public DOMXPathExpression(expression as String, resolver as XPathNSResolver) throws XPathException, DOMException:

Description

Compiles an XPath expression.

Parameters

- expression XPath expression text.
- resolver Namespace resolver, or `null` when no prefixes are used.

Throws

- XPathException if the expression is invalid or unsupported.
- DOMException if a prefix cannot be resolved.

Example

    expression = DOMXPathExpression("count(//item)", null)