XmlDocument::Evaluate (open)

Evaluate an XPATH expression

Syntax

LOADLIB "wh::xml/dom.whlib";

OBJECT FUNCTION Evaluate(STRING expression, OBJECT contextnode, OBJECT resolver, INTEGER type, OBJECT result)

Parameters

STRING expression

The XPath expression string to be parsed and evaluated.

OBJECT contextNode

The context is context node for the evaluation of this XPath expression

OBJECT resolver

The resolver for any namespace prefixes. Only DEFAULT OBJECT or IndependentXPathNSResolver instances are currently accepted

INTEGER type

Type of returnable values. Only 5 (ORDERED_NODE_ITERATOR_TYPE) is currently supported

OBJECT result

Object to reuse for result storage. May be DEFAULT OBJECT

Return value

OBJECT