Bonjour à tous,
Je suis confronté à un problème d'extraction de données depuis mon composant tXMLMap.
En gros en entrée de mon composant, j'ai un fichier XML en sortie un fichier CSV. Jusqu'aujourd'hui, tout c'est bien passé sauf que cette
fois la structure du fichier XML est différente, ce qui me rend la vie impossible.
Exemple du Structure de mon fichier XML
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 <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <timeResponse> <timeSheet> <userCreate></userCreate> <id> <idCompany>AIRRHONEALPE-XXXXXXX</idCompany> <idUser>431b1717-b664-4dba-9167-dd693bec0174</idUser> <idTimeSheet>f2d6ecf6-edf5-428b-8eab-e8ab7e0531ea</idTimeSheet> </id> <description>2015 Semaine 17</description> <startDate>2015-04-20T08:00:00+02:00</startDate> <endDate>2015-04-26T18:00:00+02:00</endDate> <status>NEW</status> <timesHoursTotals>08:00</timesHoursTotals> <activitiesHoursTotals>35:06</activitiesHoursTotals> <activitiesDaysTotals>4.50000</activitiesDaysTotals> <userCreate>cron@eurecia.com</userCreate> <dateCreate>2015-04-20T00:14:02+02:00</dateCreate> <userUpdate>gbrulfert@air-rhonealpes.fr</userUpdate> <dateUpdate>2015-04-21T08:33:45+02:00</dateUpdate> <times> <time> <id>fa66a22d-243d-49c6-8d76-08f7c97acd50</id> <date>2015-04-20T00:00:00+02:00</date> <isStandard>false</isStandard> <startHour>08:19:00</startHour> <endHour>12:24:00</endHour> <breakTime>00:00:00</breakTime> <timeWorked>04:05:00</timeWorked> <daysWorked>0.5235</daysWorked> <comment></comment> <isEditable>true</isEditable> <anomaly>ok</anomaly> </time> <time> <id>4430a830-c102-4f51-8f56-255c97ece4bc</id> <date>2015-04-20T00:00:00+02:00</date> <isStandard>false</isStandard> <startHour>13:09:00</startHour> <endHour>17:04:00</endHour> <breakTime>00:00:00</breakTime> <timeWorked>03:55:00</timeWorked> <daysWorked>0.50214</daysWorked> <comment></comment> <isEditable>true</isEditable> <anomaly>ok</anomaly> </time> <time> <id>c9a60d5b-b1ed-46b8-8314-dc340e05769e</id> <date>2015-04-21T00:00:00+02:00</date> <isStandard>false</isStandard> <startHour>08:04:00</startHour> <endHour>08:04:00</endHour> <breakTime>00:00:00</breakTime> <timeWorked>00:00:00</timeWorked> <daysWorked>0.0</daysWorked> <comment></comment> <isEditable>true</isEditable> <anomaly>ok</anomaly> </time> <time> <id>3a3e4dd4-5f0d-4f50-b972-3900a05196aa</id> <date>2015-04-22T00:00:00+02:00</date> <isStandard>false</isStandard> <startHour>00:00:00</startHour> <endHour>00:00:00</endHour> <breakTime>00:00:00</breakTime> <timeWorked>00:00:00</timeWorked> <daysWorked>0.0</daysWorked> <comment>RTT 22/04/2015 13:30:00 -22/04/2015 17:24:00 (0.5j, A valider)</comment> <isEditable>false</isEditable> <anomaly>ok</anomaly> <type>402880830cce6036010cce7bb25d0026_vacation</type> </time> </times> </timeSheet> </timeResponse>
Et comme vous pouvez le voir dans le schéma de mon TXMLMap ci-dessous j'arrive à récupérer certaines informations,
mais comment récupérer les informations contenues entre les balises <time></time> qui est répétitif (marqué en rouge sur le schéma)
Merci pour votre aide,
Partager