Skip to main content
Skip table of contents

Merge

 

Merge: Merges XML documents from different sources into one XML document, or merges text or binary streams.

Properties

Label

Label of the symbol within the process diagram

Root Element

Name of the root element that contains the entire content of the merged XML documents

Possible values:

  • String that is valid for XML element names.
    Default: Merge

Merging Data

The Merge component can be placed behind the Join component of a fork. If XML documents are merged, the XML document generated by the Merge component has a root element containing the root elements and all child nodes of the merged XML documents. This XML structure can be processed by the next process action. The name of the root element can be defined using the Root Element property of the Merge component.

Note:

If XML documents and at least one non-XML document are merged using a Merge component, the output of all documents is concatenated in the output of all documents generated by the Merge component. 

If two XML documents are merged, which have already been merged in a previous process step using the Merge component, the result XML document contains only one root element <Merge> and all child nodes of the merged XML documents.

Merging two documents
XML
<?xml version="1.0" encoding="UTF-8" ?>
<Merge>
   <!-- Document1 -->
   <!-- Document2 -->
</Merge>

If the input documents are text files (MIME type text... or application/xml) with the same character encoding, its encoding is used. If the encodings differ, a UTF-8 sequence is output. If all input documents have the same MIME type, the result also has this MIME type, else text/plain.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.