Update XML
With this node you can update an XML file by updating nodes that are selected by XPath.
It has the following configuration options:
- XML Data: here you can specify the XML data. Select the pencil to open Expression Builder.Options:
- XML data generated by a previous node.
- XML in a string.
- An URL reference to a XML file.
Note: See also XML Data Type. - XML Data Type: here you can specify how the contents of the XML data
parameter should be interpreted. Options:
- Auto detect: if you select this option, the content of the XML data parameter will be detected automatically.
- XML data: if you select this option, the content of the XML data parameter will be used as XML data.
- XML string: if you select this option, the content of the XML data parameter will be used as an XML string.
- URL reference: if you select this option, the content of the XML data parameter will be used as an URL reference.
- XPath: here you can define the XPath expression that will select a specific node in the input XML.
- Value: here you can define new value for the selected node. Select + to add a path and value.Select the pencil to open Expression Builder.
- Output: here you can specify where to save the updated output. Options:
- If you leave this field blank, the data will be sent to a container in the database and no physical file will be created.
- If you enter a file name without an extension, an output file with the specified file name and the original extension will be written in the same folder as the input file.
- If you define an absolute CLOUDFLOW URL (
cloudflow://...
, see Server URL for more information), containing a file name and an extension, a physical output file with the specified file name and the original extension will be written in the specified folder. - If you enter a relative path without a file name and extension, an output file with the original file name and extension will be written in a folder based on the original input folder.
- If you enter a relative path containing a file name and extension, an output file with the specified file name and the original extension will be written in a folder based on the original input folder.
- Overwrite existing file: if you select this checkbox, files that already exist will be overwritten. If you leave this checkbox unselected, existing files will not be overwritten and an error is displayed.