Selects all matching nodes based on the specified XPath expression.
1
myXml.SelectAll(xpath: string):Array<Xml>
Selects all matching nodes based on the specified XPath expression and executes a callback function for each selected node. The callback maps results; it does not filter nodes.
string xpath The XPath expression to use for selecting nodes.
(node?: Xml, i?: number) => any callbackoptional A callback function to execute for each selected node. Optional. The callback function receives the selected node and its index as arguments.
Returning false still produces an array entry. To test a value match, use SelectAll without a callback followed by Array.some; to keep only matches, use Array.filter.