website logo
πŸ”­Overview
πŸ’ΌPlatform Actions
πŸ’œIntegrations
🧰Custom Actions
πŸ› οΈDeveloper's Guide
Navigate through spaces
⌘K
πŸ“•Call API
πŸ“•Generate Document
πŸ“•Call Subprocess
πŸ“•Decisional
βš“Decisional Further Reading
πŸ“•Join
πŸ“•Delay
πŸ“•For Each
πŸ“•Get File Data
πŸ“•Map Process Data
βœ‰οΈSend Email
πŸ“¬Inbound email
πŸ“Database
πŸ“Documents
πŸ“DateTime
πŸ“FTP/sFTP
πŸ“Json
πŸ“XPath
πŸ“Lists
πŸ“Numerical
πŸ“Strings
πŸ“Converters
πŸ“Excel
πŸ“Scripting
πŸ“Utilitary
πŸ“Pdf
πŸ“Beta
Docs powered byΒ archbeeΒ 

XML Update

5min

The XML Update action is one of the actions at your disposal to work with XML data.

XML 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.

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 XML Update action?ο»Ώο»Ώ

1. Create a process and give it a name.

2. Drag the XML update action to the canvas and link it to the other actions.

Document image
ο»Ώ

3. Create the variables needed for the configuration of the action, and then add them to the configuration panel:

Document image
ο»Ώ

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
|
<?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:

XML
|
/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".

Document image
ο»Ώ

ο»Ώ

Updated 31 Mar 2023
Did this page help you?
Yes
No
PREVIOUS
XML Mapper
NEXT
XML Builder
Docs powered byΒ archbeeΒ 
TABLE OF CONTENTS
Overview
How to configure the XML Update action?ο»Ώο»Ώ