klyn.io.xml.xpath.DOMXPathResult.fromNodeSet
method

    public static fromNodeSet(nodes as ArrayList<Node>, requestedType as Int, reusable as XPathResult) as XPathResult throws XPathException:

Description

Builds a result from a node set.

Parameters

- nodes Evaluated nodes in document order.
- requestedType Requested XPath result type.
- reusable Optional reusable result.

Returns

Result object.

Example

    nodes = ArrayList<Node>()
    result = DOMXPathResult.fromNodeSet(nodes, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null)