Evaluate Xpath Expression Action

Description

Evaluates an XPath expression using XPath functions. The Evaluate action takes an XPath expression, evaluates it, and returns a typed result of Boolean (Boolean), Number (Double), String (String), or Node Set (XPathNodeIterator).

Declaration

<AMXMLEVALUATEXPATHEXPR XPATH="text" RESULTVARIABLE="varname"/>

Example

<AMXMLEVALUATEXPATHEXPR XPATH="sum(//price/text())" RESULTVARIABLE="TotalPrice" />

General Tab Parameters

XPath expression: Specifies the Xpath Expression from the current XML document to use to evaluate a value.

Text, Required
MARKUP: XPATH="sum(//price/text())"

Populate variable with value: Specifies the variable to receive the evaluated Xpath expression's value.

Text [variable name], Required
MARKUP: RESULTVARIABLE="varname"

Session name: Specifies the session name to identify the in-memory XML document to use in subsequent XML steps. This allows several in-memory XML documents to be active simultaneously.

Text, Optional - Default "XMLSession1"
MARKUP: SESSIONNAME="FirstXMLSession"

See Also

Edit XML Node Action,