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 2 Next »

Overview

Selects a single node by specified xpath.

Xml myXml.SelectSingle(xpath: string)

Selects a single node by specified xpath.

Xml myXml.SelectSingle(xpath: string, callback: (node: Xml) => void)

Arguments

string xpath
Selects a single node by specified xpath.
(node: Xml) => void callback
Callback function to execute on selected node.

Remarks

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

Example

Basic usage

$Xml.SelectSingle('//Customer', function() {
   var customerId = this.Evaluate('Id');
});
  • No labels