Skip to content

XmlNode.Sum

Overview

Number XmlNode.Sum ( [ xpath ] )
Returns sum of child elements on current node or specified xpath.

Arguments

String xpath

XPath to evaluate. If not specified current node childs are selected.

Remarks

Examples

Evaluate with an xpath

var totalAmount = $Xml.Sum('//Customer//Order/Total');

See Also