Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

string xpath
XPath to be evaluated. If not specified, the current node is used.

Remarks

Finding the value of a current customer's Id:

...

Code Block
languagejs
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.

Example

Evaluate with an xpath

Code Block
languagejs
var id = $Xml.Evaluate('//Customer/Id');

See Also