klyn.io.xml.xpath.DOMXPathResult.fromNumber
method

    public static fromNumber(value as Double, requestedType as Int, reusable as XPathResult) as XPathResult throws XPathException:

Description

Builds a result from a numeric value.

Parameters

- value Numeric value.
- requestedType Requested XPath result type.
- reusable Optional reusable result.

Returns

Result object.

Example

    result = DOMXPathResult.fromNumber(2.0, XPathResult.NUMBER_TYPE, null)