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

          1638895490332-366.png

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.

          1638957781269-144.png

Figure 3: Content of the 1st input file in the MERGEXML connector

          1638957917935-737.png

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

       1638958312512-875.png

Figure 5: 1st MERGEXML connector configuration

         1638959041887-565.png

Figure 6: Content of the OutputFile of the MERGEXML connector of the 1st Configuration

         1638959691058-861.png

Figure 7: 2nd MERGEXML connector configuration

        1638959789197-625.png

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.

 

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