Wiki source code of FacturXToXML
Last modified by Outhman Moustaghfir on 2022/06/13 13:18
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | |||
2 | |||
3 | = Introduction = | ||
4 | |||
5 | FacturXToXML is a connector that extract the XML structure from a FacturX. | ||
6 | |||
7 | = Parameters = | ||
8 | |||
9 | The required parameters for FacturXToXML are : | ||
10 | |||
11 | * **Output FileName** : the folder and the name of the output XML file, eg: '/out/facturX.xml' , '/work/newFacturX.xml' ... | ||
12 | ** __//NB//:__ putting the output XML structure in the "out" directory, allows to show and download from the exploitation page. | ||
13 | * **Input Charset**: the charset used for the input file. set by default to UTF-8. | ||
14 | * **Output Charset: **the charset used for the output file. set by default to UTF-8. | ||
15 | |||
16 | = Use case = | ||
17 | |||
18 | The FacturXToXML takes an input FacturX from the previous connector in the scenario and triggers the extraction of the XML structure. | ||
19 | |||
20 | the following sample illustrates the use of the connector : | ||
21 | |||
22 | |||
23 | [[image:2022-03-14_16h47_28.png||height="96" width="425"]] [[image:2022-03-14_16h48_32.png||height="330" width="354"]] | ||
24 | |||
25 | |||
26 | We call an AppEventListener to start the process that loads a FacturX from a certain directory, and then the FactuXToXML comes to extract the XML file, and add it to the exploitation page. | ||
27 | |||
28 | |||
29 | [[image:2022-03-14_16h54_01.png||height="173" width="857"]] |