MERGEXML
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: Le connecteur MERGEXML
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: Les Propriétés du connecteur MERGEXML
Example: MERGEXML using 2 Files
In this example, we will try to merge 2 files IN into one output file.
You will find below the 2 files example.
Figure 3: Contenu du 1er fichier en entrée dans le connecteur MERGEXML
Figure 4: Contenu du 2ème fichier en entrée dans le connecteur MERGEXML
En utilisant 2 configuration différente (Figure 5 et Figure 7) du connecteur MERGEXML, on obtient successivement le fichier résultat suivant (Figure 6 et Figure 8):
Figure 5: 1ère Configuration du connecteur MERGEXML
Figure 6: Contenu du Fichier OutputFile du connecteur MERGEXML de la 1ère Configuration
Figure 7: 2ème Configuration du connecteur MERGEXML
Figure 6: Contenu du Fichier OutputFile du connecteur MERGEXML de la 2ème Configuration