Read XML Node Action

Description

Retrieves the node value (or attribute value, if specified) located at the location expressed by the XPath and places it into an Automated Workflow variable.

Declaration

<AMXMLREADNODE XPATH="text" ATTRNAME="text" RESULTVARIABLE="text" />

Example

<AMXMLREADNODE XPATH="/BookStore/Books/Cost" RESULTVARIABLE="NodeValue" />

General Tab Parameters

Xpath expression: Specifies the Xpath expression to the XML node in order to read it.

Text, Required
MARKUP: XPATH="/BookStore/Books/Price"

Attribute (optional): Specifies the XML node's attribute name.

Text, Optional
MARKUP: ATTRNAME="AttributeName"

Populate variable with value: Specifies the variable to receive the node or attribute 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, Create XML Node Action, Delete XML Node Action