Wiki source code of MERGEXML
Version 24.1 by Assala Chmiti on 2021/12/08 11:34
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 | |||
19 | __** Name :**__ To give a name to the processing step (connector). It is very useful to give meaningful names. | ||
20 | |||
21 | __** Nœud XML : **__Contains the XML node allowing to merge the XML content in the same file. | ||
22 | |||
23 | __** Output FileName :**__ define the Name of the output file. | ||
24 | |||
25 | __** Condition :**__ This field allows you to add a condition to execute the processing step only if the condition is met. | ||
26 | |||
27 | [[image:1638895490332-366.png]] | ||
28 | |||
29 | |||
30 | * ((( | ||
31 | == **Example: MERGEXML using 2 Files** == | ||
32 | ))) | ||
33 | |||
34 | In this example, we will try to merge 2 files IN into one output file. | ||
35 | |||
36 | You will find below the 2 files example. | ||
37 | |||
38 | |||
39 | [[image:1638957781269-144.png||height="287" width="965"]] | ||
40 | |||
41 | ==== ==== | ||
42 | |||
43 | (% class="wikigeneratedid" %) | ||
44 | ==== Figure 1: Contenu du 1^^er^^ fichier en entrée dans le connecteur MERGEXML ==== | ||
45 | |||
46 | |||
47 | [[image:1638957917935-737.png]] | ||
48 | |||
49 | ==== ==== | ||
50 | |||
51 | (% class="wikigeneratedid" %) | ||
52 | ==== ==== | ||
53 | |||
54 | (% class="wikigeneratedid" %) | ||
55 | ==== Figure 2: Contenu du 2^^ème^^ fichier en entrée dans le connecteur MERGEXML ==== | ||
56 | |||
57 | |||
58 | En utilisant la configuration suivante(Figure 3) du connecteur MERGEXML, on obtient le fichier résultat suivant (Figure 4): | ||
59 | |||
60 | |||
61 | [[image:1638958312512-875.png]] | ||
62 | |||
63 | ==== Figure 3: Configuration du connecteur MERGEXML ==== | ||
64 | |||
65 | |||
66 | [[image:1638959041887-565.png||height="412" width="933"]] | ||
67 | |||
68 | |||
69 | ==== Figure 4: Contenu du Fichier OutputFile du connecteur MERGEXML ==== | ||
70 | |||
71 |