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 :

                 1638895716974-752.png

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.

          1638895490332-366.png

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.

          1638957781269-144.png

Figure 3: Contenu du 1er fichier en entrée dans le connecteur MERGEXML

          1638957917935-737.png

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):

       1638958312512-875.png

Figure 5: 1ère Configuration du connecteur MERGEXML

         1638959041887-565.png

Figure 6: Contenu du Fichier OutputFile du connecteur MERGEXML de la 1ère Configuration

         1638959691058-861.png

Figure 7: 2ème Configuration du connecteur MERGEXML

        1638959789197-625.png

Figure 6: Contenu du Fichier OutputFile du connecteur MERGEXML de la 2ème Configuration

 

Tags:
    
This wiki is hosted and managed by iXPath
Powered by XWiki 13.3 debian