2. Scenario - MERGEXML 

Page / - last modified by Assala Chmiti on 2022/06/13 13:18 

MERGEXML 
last modified by Assala Chmiti
on 2022/06/13 13:18

Table of Contents
I- Introduction:
I- Treatment Features:
Remark:

I- Introduction:
The "MergeXML" connector is used to merge different XML files into one XML file.
I- Treatment Features:
The "MergeXML" connector is found in the conectors panel (On the left sidebar of the scenario page).
•	Configuration:
 
To set up the connector, you should click on the blue button above the  connector and fill in the properties displayed :
                 
Figure 1: The MERGEXML connector
  Name : To give a name to the processing step (connector). It is very useful to give meaningful names.
  Nœud XML : Contains the XML node allowing to merge the XML content in the same file.
  Output FileName : define the Name of the output file.
  Condition : This field allows you to add a condition to execute the processing step only if the condition is met.
          
Figure 2: Properties of the MERGEXML connector
•	Example: MERGEXML using 2 Files IN
 
In this example, we will try to merge 2 files IN into one output file.
•	1-Input files of the MERGEXML connector
You will find below the 2 files example.
          
Figure 3: Content of the 1st input file in the MERGEXML connector
          
Figure 4: Content of the 2nd input file in the MERGEXML connector
•	1-Output file after the MERGEXML connector
By using 2 different configurations (Figure 5 and Figure 7) of the MERGEXML connector, we obtain successively the following result file (Figure 6 and Figure 8):
       
Figure 5: 1st MERGEXML connector configuration
         
Figure 6: Content of the OutputFile of the MERGEXML connector of the 1st Configuration
         
Figure 7: 2nd MERGEXML connector configuration
        
Figure 8: Content of the OutputFile of the MERGEXML connector of the 2nd Configuration
Remark:
The XML node in the properties of the MERGEXML connector is the one that determines the content of the output File.