Wiki source code of MERGEXML
Version 26.1 by Assala Chmiti on 2021/12/08 11:38
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | = __**I- Introduction:**__ = | ||
2 | |||
3 | The "MergeXML" connector is used to merge different XML files into one XML file. | ||
4 | |||
5 | = __**I- Treatment Features:**__ = | ||
6 | |||
7 | The "MergeXML" connector is found in the conectors panel (On the left sidebar of the scenario page). | ||
8 | |||
9 | * ((( | ||
10 | == **Configuration:** == | ||
11 | ))) | ||
12 | |||
13 | **T**o set up the connector, you should click on the blue button above the connector and fill in the properties displayed : | ||
14 | |||
15 | |||
16 | [[image:1638895716974-752.png]] | ||
17 | |||
18 | ==== ,,__Figure 1: Le connecteur MERGEXML__,, ==== | ||
19 | |||
20 | |||
21 | __** Name :**__ To give a name to the processing step (connector). It is very useful to give meaningful names. | ||
22 | |||
23 | __** Nœud XML : **__Contains the XML node allowing to merge the XML content in the same file. | ||
24 | |||
25 | __** Output FileName :**__ define the Name of the output file. | ||
26 | |||
27 | __** Condition :**__ This field allows you to add a condition to execute the processing step only if the condition is met. | ||
28 | |||
29 | |||
30 | [[image:1638895490332-366.png]] | ||
31 | |||
32 | |||
33 | ==== ,,__Figure 2: Les Propriétés du connecteur MERGEXML__,, ==== | ||
34 | |||
35 | |||
36 | * ((( | ||
37 | == **Example: MERGEXML using 2 Files** == | ||
38 | ))) | ||
39 | |||
40 | In this example, we will try to merge 2 files IN into one output file. | ||
41 | |||
42 | You will find below the 2 files example. | ||
43 | |||
44 | |||
45 | |||
46 | |||
47 | [[image:1638957781269-144.png||height="287" width="965"]] | ||
48 | |||
49 | ==== ==== | ||
50 | |||
51 | ==== ,,__Figure 3: Contenu du 1^^er^^ fichier en entrée dans le connecteur MERGEXML__,, ==== | ||
52 | |||
53 | |||
54 | |||
55 | |||
56 | [[image:1638957917935-737.png]] | ||
57 | |||
58 | ==== ==== | ||
59 | |||
60 | ==== __,,Figure 4: Contenu du 2^^ème^^ fichier en entrée dans le connecteur MERGEXML,,__ ==== | ||
61 | |||
62 | |||
63 | 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): | ||
64 | |||
65 | |||
66 | [[image:1638958312512-875.png]] | ||
67 | |||
68 | ==== ,,__Figure 5: 1^^ère^^ Configuration du connecteur MERGEXML__,, ==== | ||
69 | |||
70 | |||
71 | [[image:1638959041887-565.png||height="412" width="933"]] | ||
72 | |||
73 | |||
74 | ==== ,,__Figure 6: Contenu du Fichier OutputFile du connecteur MERGEXML de la 1^^ère^^ Configuration__,, ==== | ||
75 | |||
76 | |||
77 | |||
78 | [[image:1638959691058-861.png]] | ||
79 | |||
80 | |||
81 | ==== __,,Figure 7: 2^^ème ^^Configuration du connecteur MERGEXML,,__ ==== | ||
82 | |||
83 | |||
84 | |||
85 | [[image:1638959789197-625.png||height="391" width="1036"]] | ||
86 | |||
87 | ==== ,,__Figure 6: Contenu du Fichier OutputFile du connecteur MERGEXML de la 2^^ème ^^Configuration__,, ==== | ||
88 | |||
89 |