Change Node Action

The Change Node action replaces the value of an xml node found using an XPath expression.  The node can be an attribute or an element.  To use this action you provide a path to an existing Xml Document by selecting from a list of known folders on the client target and then providing a sub path and file name.

You then provide an XPath expression to identify the node that you want to change.  If more than one node matches the XPath expression, you can choose one of five actions:

You provide the new node text and nodes are changed based on the setting above.

 

Prepare Stage

Verifies permission to modify the defined Xml file.

Execute Stage

The action backs up the Xml file then changes the Xml node text, performing the operation as defined by the action properties.

Cleanup Stage

Removes the backup file created during the execute stage.

Rollback Stage

Restores the xml file with the file backed up in the execute stage.

 

Change Xml Node Action Editor

Action description – Descriptive text that can be used to identify this particular action in the Actions list.

 

Target client folder – The folder on the client where the xml file that is to be edited is located.

 

Subdirectories – The directory below the designated client root folder to find the xml file that is to be edited.

 

XML file to edit – The name of the xml file that is to be edited.

 

XPath query to select the node to be changed  – Use an XPath expression to identify the node within the xml file that you want to change.

 

New node text – Type the new text of the Xml Node.

 

If multiple nodes are found – Identify the action that you want to occur in the event that multiple xml nodes are returned by your XPath expression.  You can choose to:

 

Expansion variables can be used to set target client subdirectory, file name of the xml file to edit, Xpath query, and new node text.