Skip to content

XmlNode.SelectSingle

Overview

XmlNode XmlNode.SelectSingle ( xpath, [ callback ] )
Selects a single node by specified xpath.

Arguments

String xpath

XPath of node to select.

Function callback

Callback function to execute on selected node.

Remarks

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

Examples

Basic usage

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

See Also