Wiki source code of MERGEXML
Last modified by Assala Chmiti on 2022/06/13 13:18
Hide last authors
author | version | line-number | content |
---|---|---|---|
13.1 | 1 | = __**I- Introduction:**__ = | |
3.1 | 2 | ||
28.1 | 3 | ||
3.1 | 4 | The "MergeXML" connector is used to merge different XML files into one XML file. | |
5 | |||
14.1 | 6 | = __**I- Treatment Features:**__ = | |
3.1 | 7 | ||
28.1 | 8 | ||
13.1 | 9 | The "MergeXML" connector is found in the conectors panel (On the left sidebar of the scenario page). | |
3.1 | 10 | ||
13.1 | 11 | * ((( | |
12 | == **Configuration:** == | ||
28.1 | 13 | ||
14 | |||
13.1 | 15 | ))) | |
3.1 | 16 | ||
7.1 | 17 | **T**o set up the connector, you should click on the blue button above the connector and fill in the properties displayed : | |
3.1 | 18 | ||
19 | |||
7.1 | 20 | ||
28.1 | 21 | [[image:1638895716974-752.png||height="123" width="129"]] | |
22 | |||
23 | |||
27.1 | 24 | ==== ,,__Figure 1: The MERGEXML connector__,, ==== | |
7.1 | 25 | ||
26.1 | 26 | ||
13.1 | 27 | __** Name :**__ To give a name to the processing step (connector). It is very useful to give meaningful names. | |
7.1 | 28 | ||
13.1 | 29 | __** Nœud XML : **__Contains the XML node allowing to merge the XML content in the same file. | |
7.1 | 30 | ||
31 | __** Output FileName :**__ define the Name of the output file. | ||
32 | |||
13.1 | 33 | __** Condition :**__ This field allows you to add a condition to execute the processing step only if the condition is met. | |
7.1 | 34 | ||
35 | |||
36 | |||
26.1 | 37 | ||
28.1 | 38 | [[image:1638895490332-366.png||height="420" width="458"]] | |
39 | |||
40 | |||
27.1 | 41 | ==== ,,__Figure 2: Properties of the MERGEXML connector__,, ==== | |
26.1 | 42 | ||
43 | |||
13.1 | 44 | * ((( | |
29.1 | 45 | == **Example: MERGEXML using 2 Files IN** == | |
28.1 | 46 | ||
47 | |||
13.1 | 48 | ))) | |
7.1 | 49 | ||
13.1 | 50 | In this example, we will try to merge 2 files IN into one output file. | |
7.1 | 51 | ||
29.1 | 52 | * ((( | |
53 | === __**1-Input files of the MERGEXML connector**__ === | ||
54 | ))) | ||
55 | |||
56 | |||
14.1 | 57 | You will find below the 2 files example. | |
13.1 | 58 | ||
59 | |||
19.1 | 60 | ||
61 | |||
27.1 | 62 | [[image:1638957781269-144.png||height="380" width="1278"]] | |
19.1 | 63 | ||
26.1 | 64 | ==== ==== | |
23.1 | 65 | ||
27.1 | 66 | ==== ,,__Figure 3: Content of the 1^^st^^ input file in the MERGEXML connector__,, ==== | |
19.1 | 67 | ||
68 | |||
26.1 | 69 | ||
70 | |||
27.1 | 71 | [[image:1638957917935-737.png||height="377" width="1280"]] | |
26.1 | 72 | ||
23.1 | 73 | ==== ==== | |
19.1 | 74 | ||
27.1 | 75 | ==== __,,Figure 4: Content of the 2^^nd^^ input file in the MERGEXML connector,,__ ==== | |
23.1 | 76 | ||
77 | |||
29.1 | 78 | * ((( | |
79 | === **__1-Output file after the MERGEXML connector__** === | ||
80 | ))) | ||
81 | |||
82 | |||
27.1 | 83 | 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): | |
19.1 | 84 | ||
85 | |||
28.1 | 86 | [[image:1638958312512-875.png||height="424" width="491"]] | |
19.1 | 87 | ||
27.1 | 88 | ==== ,,__Figure 5: 1^^st^^ MERGEXML connector configuration__,, ==== | |
19.1 | 89 | ||
23.1 | 90 | ||
27.1 | 91 | [[image:1638959041887-565.png||height="521" width="1180"]] | |
23.1 | 92 | ||
93 | |||
27.1 | 94 | ==== ,,__Figure 6: Content of the OutputFile of the MERGEXML connector of the 1^^st^^ Configuration__,, ==== | |
23.1 | 95 | ||
26.1 | 96 | ||
97 | |||
28.1 | 98 | [[image:1638959691058-861.png||height="408" width="482"]] | |
26.1 | 99 | ||
100 | |||
27.1 | 101 | ==== __,,Figure 7: 2^^nd^^ MERGEXML connector configuration,,__ ==== | |
26.1 | 102 | ||
103 | |||
104 | |||
27.1 | 105 | [[image:1638959789197-625.png||height="454" width="1202"]] | |
26.1 | 106 | ||
28.1 | 107 | ==== ,,__Figure 8: Content of the OutputFile of the MERGEXML connector of the 2^^nd^^ Configuration__,, ==== | |
26.1 | 108 | ||
27.1 | 109 | ||
110 | = = | ||
111 | |||
112 | == __Remark:__ == | ||
113 | |||
114 | |||
115 | The XML node in the properties of the MERGEXML connector is the one that determines the content of the output File. | ||
116 | |||
117 | |||
29.1 | 118 |