XML
Update
5min
the update action is one of the actions at your disposal to work with xml data update enables you to update an xml input, if the input tag exists, or to insert the input tag, if it doesn't exist, using xpath the action will be able to update data from an xml input using an xpath expression update was previously called xml update overview the action is used to update the xml data that we will import into our process for future use input xml string input your xml schema in a process variable of type string input xml file input your xml file in a process variable of type file xpath expression input xpath expression for obtaining the key value(s) for your xml input xml tag input xml tag you want to update or insert new value input new value to update the xml node file name input file name if you want to store the new xml in a file the xml extensions will be automatically added string result returns the new xml as a string file result returns the new xml as a file how to configure the update action? https //kb procesio com/regex replace#qd how to 1\ create a process and give it a name 2\ drag the update action to the canvas and link it to the other actions 3\ create the variables needed for the configuration of the action, and then add them to the configuration panel in new value we added "great gatsby" which will be updating the title of book\[1], i e "harry potter" 4\ save, validate and run the process 5\ the process will ask for inputs (see values with example purposes below) xmlstring \<?xml version="1 0" encoding="utf 8"?> \<bookstore> \<book> \<title lang="en">harry potter\</title> \<price>29 99\</price> \</book> \<book> \<title lang="en">learning xml\</title> \<price>39 95\</price> \</book> \</bookstore> xpath /bookstore/book\[1]	 6\ click run 7\ click check instance to view the results you will see the new xml string saved in the result variable the title of book\[1] is updated to "great gatbsy"