Skip to content

Count

Returns the number of nodes at the specified XPath.

1
myXml.Count(xpath: string):number

Parameters

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

Remarks

Evaluate with an XPath

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