Versions Compared

Key

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

...

If multiple nodes found on xpath, first node is selected.

Example

Basic usage

Code Block
languagejs
var customerNode = $Xml.SelectSingle('//Customer');
if (customerNode) {
  ...
}

Example

Using callback function

Code Block
languagejs
$Xml.SelectSingle('//Customer', function(customer) {
   var customerId = thiscustomer.Evaluate('Id');
});