setXMLNode Step

Last published at: May 2nd, 2023

Description:

Sets the value of a selected xml node.

Inputs

  • xmlVariable – variable that holds the xml
  • xmlNodeToSet – name of the xml node to set
  • valueToAssign – value to assign to the node
  • loopVariable – loop variable that holds the collection index 

Returns

  • True – step executed successfully
  • False – step failed to execute 

Usage:

Example:

Let’s build and execute the setXMLNodeDef example.          

  • Create a new definition called “setXMLNodeDef
  • Select the definition and click the “design” button
  • Drag the above steps from the toolbox and connect as shown
  • Select ExecuteSQL step and configure the the following values for the properties as shown on the below graphic 
  • Select Update Variables step and configure the the following values for the properties as shown on the below graphic 

  • Click on the “setXMLNode” step to configure its properties as shown on the below graphic

  • Save the process definition, create a new process instance and execute. The step should add / set a new value to XML node.