Skip to content

Count

Returns number of nodes at specified xpath

1
myXml.Count(xpath: string):number

Parameters

string xpath
    XPath to count. If not specified, the current node children are selected.

Remarks

Evaluate with an xpath

1
var customerCount = $Xml.Count('//Customer');