Edit XML Node Action

Description

Edits a node value or its attribute in a given file. Select the appropriate node using Xpath expression. The action will edit the first node if Xpath evaluates to more than one node.

Declaration

<AMXMLEDITNODE XPATH="text" XMLATTRIBUTE="text" NEWVALUE="text" />

Example

<AMXMLEDITNODE XPATH="/BookStore/Book" NEWVALUE="Who moved my Cheese" />

General Tab Parameters

XPath expression: Specifies the Xpath expression to the XML node to edit.

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

Attribute (optional): Tells the XML node the value of the attribute to edit.

Text, Optional
MARKUP: XMLATTRIBUTE="Price"

Value: Specifies the XML node's attribute to edit.

Text, Required
MARKUP: NEWVALUE="NewValue"

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

Create XML Node Action, Delete XML Node Action