Xml.Count

Overview

Returns number of nodes at specified xpath

number myXml.Count(xpath: string)

Arguments

string xpath

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

Example

Evaluate with an xpath

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

Copyright © 2010 - 2023 Emakin. All rights reserved.