klyn.io.xml.xpath.DOMXPathResult.fromString
method

    public static fromString(value as String, requestedType as Int, reusable as XPathResult) as XPathResult throws XPathException:

Description

Builds a result from a string value.

Parameters

Parameter | Description
--- | ---
`value` | String value.
`requestedType` | Requested XPath result type.
`reusable` | Optional reusable result.

Returns

Result object.

Example

    result = DOMXPathResult.fromString("ok", XPathResult.STRING_TYPE, null)