...
If multiple nodes found on xpath, first node is selected.
Example
Basic usage
Code Block | ||
---|---|---|
| ||
var customerNode = $Xml.SelectSingle('//Customer');
if (customerNode) {
...
} |
Example
Using callback function
Code Block | ||
---|---|---|
| ||
$Xml.SelectSingle('//Customer', function(customer) { var customerId = thiscustomer.Evaluate('Id'); }); |