Overview
Selects all matching nodes by specified xpath.Array<Xml> myXml.SelectAll(xpath: string)
Array<any> myXml.SelectAll(xpath: string, callback: (node: Xml, i: number) => any)
Arguments
string xpath
XPath of node to selected.
(node: Xml, i: number) => any callback
Callback function to execute for each selected node. Optional.
Example
Basic usage
var allCustomers = $Xml.SelectAll('//Customer');
Example
Basic usage
$Xml.SelectAll('//Customer', function(customer) { var customerId = customer.Evaluate('Id'); });
Example
Using callback function to map selected nodes
var customerIds = $Xml.SelectAll('//Customer', function(customer) { return customer.Evaluate('Id'); });