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 :
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.
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 1: Contenu du 1er fichier en entrée dans le connecteur MERGEXML
Figure 2: Contenu du 2ème fichier en entrée dans le connecteur MERGEXML
En utilisant la configuration suivante(Figure 3) du connecteur MERGEXML, on obtient le fichier résultat suivant (Figure 4):
Figure 3: Configuration du connecteur MERGEXML
Figure 4: Contenu du Fichier OutputFile du connecteur MERGEXML