Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Overview

Returns string value of current node

string myXml.Evaluate()

Returns string value of a specified xpath.

string myXml.Evaluate(xpath: string)

Arguments

string xpath
XPath to be evaluated.

Remarks

Finding the value of a current customer's Id:

Example

Evaluate with an xpath

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

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.

Example

Evaluate with an xpath

var id = $Xml.Evaluate('//Customer/Id');
  • No labels