Bonjour
Je reçois des factures en xml et je dois les donner à un service au format Html pour qu'ils pouissent les consulter de manière simple.
Voici mon xml :
je ne sais pas comment récupérer les infos de maniere simple dans un Html, surtout que je vais recevoir une foule de factures xml de ce type.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289 <?xml version="1.0" encoding="ISO-8859-1" ?> - <Invoice xmlns="http://www.facturation.com"> - <InvoiceHeader> <InvoiceType stdValue="380" /> <Control stdValue="CHECKLINESUM">Y</Control> <InvoiceStatus stdValue="9" /> <TaxMode stdValue="DEB" /> <TaxTreatment stdValue="GIL" /> <InvoiceTreatment stdValue="E" /> <InvoiceNumber>32546890</InvoiceNumber> <InvoiceDate>2013-12-23</InvoiceDate> <Currency stdValue="EUR" /> - <Party stdValue="OB"> <PartyID /> - <Name> <Name1>MOII CENTRE OUEST MEDITERRANEE</Name1> <Name2>MOII- MALI OPERATION INFORMATION INSTRUCTION</Name2> </Name> - <Street> <Street1>RUE NICOLAS LEGRAND</Street1> </Street> - <PostalInfo> <City>ST ETIENNE</City> <PostalCode>42000</PostalCode> <Country stdValue="FR">FR</Country> </PostalInfo> <Ref stdValue="IT">0283040910</Ref> <Ref stdValue="UCN">0</Ref> - <LegalInfos stdValue="FR"> <RegisteredNumber stdValue="SIREN" /> <RegisteredNumber stdValue="TVA" /> </LegalInfos> </Party> - <Party stdValue="DP"> <PartyID /> - <Name> <Name1>MOII</Name1> <Name2>MALI OPERATION INFORMATION INSTRUCTION</Name2> </Name> - <Street> <Street1>RUE NICOLAS LEGRAND</Street1> </Street> - <PostalInfo> <City>ST ETIENNE</City> <PostalCode>82000</PostalCode> <Country stdValue="FR">FR</Country> </PostalInfo> <Ref stdValue="IT">FR83040910</Ref> <Ref stdValue="UCN">0</Ref> - <LegalInfos stdValue="FR"> <RegisteredNumber stdValue="SIREN" /> <RegisteredNumber stdValue="TVA" /> </LegalInfos> </Party> - <Party stdValue="SU"> <PartyID>3459218790</PartyID> - <Name> <Name1>ML ELECTROMENAGER</Name1> <Name2 /> <Name3 /> </Name> - <Street> <Street1>22 AVENUE DE LYON</Street1> </Street> - <PostalInfo> <City>TOULON</City> <PostalCode>83200</PostalCode> <Country stdValue="FR">FR</Country> </PostalInfo> - <Contact> <Name1>I. FAGUES</Name1> <TelNum stdValue="TE">03 45 28 52 61</TelNum> <Function stdValue="AP" /> </Contact> - <Contact> <Name1>JUDIE P. (BO/SE/VI)</Name1> <TelNum stdValue="TE">03 45 28 52 15</TelNum> <Function stdValue="CR" /> </Contact> - <Contact> <Name1>ARNALK O. (NF/GA)</Name1> <TelNum stdValue="TE">03 45 28 52 34</TelNum> <Function stdValue="CR" /> </Contact> <Ref stdValue="IT">3015028005687</Ref> <Ref stdValue="UCN">3015028005687</Ref> - <LegalInfos stdValue="FR"> <RegisteredNumber stdValue="SIREN">350931200</RegisteredNumber> <RegisteredNumber stdValue="CITY">R.C.S. TOULON B 350 931 200</RegisteredNumber> <RegisteredNumber stdValue="TVA">FR55350931200</RegisteredNumber> <Status>Société par Actions Simplifiées</Status> <Capital stdValue="EUR">1072300</Capital> </LegalInfos> </Party> - <Party stdValue="RE"> <PartyID /> - <Name> <Name1>ML ELECTROMENAGER</Name1> </Name> - <Street> <Street1>22 AVENUE DE LYON</Street1> </Street> - <PostalInfo> <City>TOULON</City> <PostalCode>83200</PostalCode> <Country stdValue="FR">FR</Country> </PostalInfo> <Ref stdValue="UCN">3015028005687</Ref> - <LegalInfos stdValue="FR"> <RegisteredNumber stdValue="SIREN" /> <RegisteredNumber stdValue="TVA" /> </LegalInfos> </Party> - <Party stdValue="BY"> <PartyID>FR40857101297</PartyID> - <Name> <Name1>MOII FRANCE</Name1> </Name> - <Street> <Street1>143 AVENUE DU MERI - CS40459</Street1> </Street> - <PostalInfo> <City>TALENCE</City> <PostalCode>33421</PostalCode> <Country stdValue="FR">FR</Country> </PostalInfo> <Ref stdValue="IT">0481253700</Ref> <Ref stdValue="UCN" /> - <LegalInfos stdValue="FR"> <RegisteredNumber stdValue="SIREN">FR21322458747</RegisteredNumber> <RegisteredNumber stdValue="TVA">FR21322458747</RegisteredNumber> </LegalInfos> </Party> - <Payment> - <PaymentDueDate> <AbsoluteDate>2014-01-07</AbsoluteDate> </PaymentDueDate> - <PaymentTerms> <PaymentTermType stdValue="22" /> <SettlementCondition>Taux d'escompte applicable pour paiement anticipé 0.55% par mois au prorata temporis.</SettlementCondition> </PaymentTerms> - <PaymentTerms> <PaymentTermType stdValue="20" /> <SettlementCondition>En cas de retard de paiement des intérêts sont dûs au taux d'intérêt appliqué par la BCE à son opération de refinancement la plus récente majorée de 14%. Taux annuel des pénalités de retard 14.75%. Indemnité forfaitaire pour frais de recouvrement 40 euros.</SettlementCondition> </PaymentTerms> <PaymentMean stdValue="30" /> - <PaymentAmount> <LocalCurrencyAmt>7891.18</LocalCurrencyAmt> </PaymentAmount> </Payment> <PONum>SLDG0145579</PONum> <DeliveryNoteNum>8806200202</DeliveryNoteNum> <Ref stdValue="AAU" /> <Ref stdValue="VN">2483870</Ref> <Ref stdValue="DQ">8801402202</Ref> <Date stdValue="11">2013-12-23</Date> <Date stdValue="11">2013-12-23</Date> <Date stdValue="4">2013-11-06</Date> <Date stdValue="95">2013-11-25</Date> <Date stdValue="8">2013-11-06</Date> <GenText stdValue="MLGlobalInformation">La liste des produits de la Distribution Sélective sur :</GenText> <GenText stdValue="MLGlobalInformation">ML http://www.ML-home.fr/catalogue-collection-exces</GenText> <GenText stdValue="MLGlobalInformation">MN http://www.MN-home.fr/catalogue-preference</GenText> <GenText stdValue="DiscountedBasis">6540.44</GenText> <GenText stdValue="AAI">TVA sur les débits. Nos marchandises bénéficient de la clause de propriété.Selon nos Conditions Générales de Ventes disponibles sur http:\\www.ML-electromenager.com/cv/</GenText> <GenText stdValue="SAPInvoiceType">ZFF2</GenText> <GenText stdValue="POOrigin">Commande EDI</GenText> <GenText stdValue="INCOTERMS">CPT Port payé ST ETIENNE</GenText> <GenText stdValue="PaiementConditions">Virement</GenText> <GenText stdValue="PaiementConditions2">dans les 15 jours 1.75% escpte</GenText> <GenText stdValue="BankAccount">SP La Défonce sa - IBAN : FR81 30458 04650 14500239417 12 - Adresse SWIFT : MPIJFRPPLDE</GenText> <GenText stdValue="PaidBy">0481253700</GenText> </InvoiceHeader> - <InvoiceDetails> - <BaseItemDetail> <LineItemNum>1</LineItemNum> - <PartNumDetail stdValue="EN"> <PartNum>4242002711409</PartNum> <PartDesc>LAVE-VAISSELLE 60 PL 41DB A+ BLANC</PartDesc> </PartNumDetail> - <PartNumDetail stdValue="VP"> <PartNum>SPS50D01EU</PartNum> </PartNumDetail> - <Quantity> <Qty>30</Qty> <UnitOfMeasure stdValue="PCE" /> - <RelatedQuantity stdValue="129"> <Qty>1</Qty> <UnitOfMeasure stdValue="PCE" /> </RelatedQuantity> </Quantity> </BaseItemDetail> <UnitPrice>223.01</UnitPrice> <PONum>SYUG0145579</PONum> <POLineNum>3</POLineNum> <LineItemSubTotal>6690.44</LineItemSubTotal> - <Tax> <TaxFunction stdValue="7" /> <TaxType stdValue="VAT" /> <TaxCategory stdValue="S" /> <TaxPercent>20</TaxPercent> - <SubTotals stdValue="AUT"> <GrossAmount>218.01</GrossAmount> </SubTotals> - <SubTotals stdValue="25"> <GrossAmount>6540.44</GrossAmount> </SubTotals> </Tax> - <Tax stdValue="4"> <TaxFunction stdValue="7" /> <TaxType stdValue="GST" /> <TaxCategory stdValue="S" /> <TaxAmountPerUnit>5</TaxAmountPerUnit> <TaxableAmount>150</TaxableAmount> <Ref stdValue="UCN">3001000002459</Ref> <Ref stdValue="APB">2</Ref> <TaxDesc>Eco participation</TaxDesc> - <Tax> <TaxFunction stdValue="7" /> <TaxType stdValue="VAT" /> <TaxCategory stdValue="S" /> <TaxPercent>20</TaxPercent> </Tax> </Tax> - <LineDiscountInfo stdValue="1"> <DiscountPercent>34</DiscountPercent> <DiscountDesc>Remise de Base</DiscountDesc> <Ref stdValue="ALC">TD</Ref> <Ref stdValue="APB">2</Ref> </LineDiscountInfo> - <LineDiscountInfo stdValue="2"> <DiscountPercent>3.03</DiscountPercent> <DiscountDesc>Remise dynamique commerciale</DiscountDesc> <Ref stdValue="ALC">TD</Ref> <Ref stdValue="APB">2</Ref> </LineDiscountInfo> - <LineDiscountInfo stdValue="3"> <DiscountPercent>16.5</DiscountPercent> <DiscountDesc>Remise assortiment</DiscountDesc> <Ref stdValue="ALC">TD</Ref> <Ref stdValue="APB">2</Ref> </LineDiscountInfo> - <SubTotals stdValue="146"> <GrossAmount>407.96</GrossAmount> </SubTotals> - <Equipment> <Manufacturer>ML</Manufacturer> </Equipment> <Ref stdValue="PI" /> <GenText stdValue="ProductCode">SPS50D01EU</GenText> <GenText stdValue="DNSULine">10</GenText> <GenText stdValue="ManufacturerCode">3045828014106</GenText> <GenText stdValue="EcoPartCode">TX</GenText> <GenText stdValue="ProductCode" /> </InvoiceDetails> - <InvoiceSummary> - <TaxSummary> - <DiscountSummary stdValue="1"> <LineItemTotals>6540.44</LineItemTotals> <DiscountPercent>1.75</DiscountPercent> <ValueDiscount>114.46</ValueDiscount> <DiscountDesc>Escompte</DiscountDesc> <Ref stdValue="UCN" /> <Ref stdValue="ALC">CAC</Ref> <Ref stdValue="APB" /> </DiscountSummary> - <Tax> <TaxFunction stdValue="7" /> <TaxType stdValue="VAT" /> <TaxCategory stdValue="S" /> <TaxPercent>20</TaxPercent> <TaxableAmount>6575.98</TaxableAmount> <TaxAmount>1315.2</TaxAmount> </Tax> </TaxSummary> - <InvoiceTotals> <NetValue>6575.98</NetValue> <TaxValue>1315.2</TaxValue> <GrossValue>7891.18</GrossValue> - <SubTotals stdValue="168"> <NetAmount>150</NetAmount> <Ref stdValue="UCN">1457025002459</Ref> <SubTotalDesc>Eco participation</SubTotalDesc> </SubTotals> </InvoiceTotals> </InvoiceSummary> - <!-- Copyright (c) 2014 MOLIE Consortium, All Rights Reserved. --> </Invoice>
J esais qu'on peut associer un xml dans le Html en mettant les bonnes balises et en indiquant le xml de référence, mais je ne vois pas comment. d'autant que ce fichier est fait de multitudes de sous balises.
Merci d'avance si vous pouvez m'aider
Gancau
Partager