Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

Overview

Returns sum of child elements on current node or specified xpath.

number myXml.Sum()

Returns sum of child elements on current node or specified xpath.

number myXml.Sum(xpath: string)

Arguments

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

Example

Evaluate with an xpath

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