Skip to content

Evaluate

Returns string value of current node

1
myXml.Evaluate():string

Returns string value of a specified xpath.

1
myXml.Evaluate(xpath: string):string

Parameters

string xpath
    XPath to be evaluated.

Remarks

Finding the value of a current customer's Id:

Evaluate with an xpath

1
var id = $Xml.Evaluate('CustomerInformation/Customer/Id');

Info

The below example is similar to the one above but with double slashes. It is used to look up for the Customer node in everywhere starting from the root element.

Evaluate with an xpath

1
var id = $Xml.Evaluate('//Customer/Id');

See Also