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).
|
AWE's XML actions require a basic understanding of XML and related terms, such as XPath, DTD and XSLT. |
Declaration
<AMXMLEVALUATEXPATHEXPR XPATH="text" RESULTVARIABLE="varname"/>
Example
<AMXMLEVALUATEXPATHEXPR XPATH="sum(//price/text())" RESULTVARIABLE="TotalPrice" />
See Also: Delete XML Node, Extract XML Fragment, Merge XML Files, Output XML, Read XML Node, Sign XML Document, Start XML Session, Transform XML, Validate XML File, Verify XML Document, XML Node to Dataset
Property |
Type |
Required |
Default |
Markup |
Description |
XPath Expression |
Text |
Yes |
(Empty) |
XPATH="/BookStore/Books/Price" |
The Xpath Expression from the current XML document to use to evaluate a value. |
Populate Variable with value |
Text |
Yes |
(Empty) |
XMLATTRIBUTE="Price" |
The name of an existing variable to receive the evaluated Xpath expression's value. |
Session Name |
Text |
No |
(Empty) |
SESSIONNAME="FirstXMLSession" |
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. |