Bonsoir,
Je fais appel a vous car je n'arrive pas a affiché une partie de mon fichier XLM en HMTL. J'arrive à afficher les 4 premiers attributs (index, date,time, et type). Si quel qu'un peux jeter un coup d'oeil et me repondre je le remercie d'avance.
Ci joint les 2 fichiers (le fichier XML ne peut etre modifier car il est generé par une application)
Fichier XML : text.xml
Code XML : 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 <?xml version="1.0" encoding="ISO-8859-1"?> <cdr_events> <event index="37" date="23 November 2006" time="12:12:59" type="participant_left"> <conference unique_id="223022" name="Reunion Technique(1)"> </conference> <endpoint_details ip_address="192.168.1.10" dn="2133" h323_alias="Hotline - VSX7000" configured_name="<none>"> </endpoint_details> <participant participant_id="11"> </participant> <call time_in_conference="31 sec" time_in_conference_in_minutes="1" disconnect_reason="participant ended call"> </call> <media_from_endpoint resolution="480 x 272" video_codec="H.264" audio_codec="G.722" bandwidth="384000 bit/s"> </media_from_endpoint> <media_to_endpoint resolution="704 x 576" video_codec="H.263" audio_codec="G.722" bandwidth="384000 bit/s"> </media_to_endpoint> </event> </cdr_events>
Fichier HTML : affiche.html
Code HTML : 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 <html> <body> <xml id="test" src="test.xml"/> <table border="1" datasrc="#test"> <tr> <td>Index</td> <td>Date</td> <td>Time</td> <td>Type</td> <td>Identifiant</td> <td>Nom</td> <td>Adresse ip</td> <td>Dn</td> <td>Alias</td> <td>Nom de config</td> <td>Id participant</td> <td>time_in_conference</td> <td>time_in_conference_in_minutes</td> <td>disconnect_reason</td> <td>media_from_endpoint resolution</td> <td>media_from_endpoint video_codec</td> <td>media_from_endpoint audio_codec</td> <td>media_from_endpoint bandwidth</td> <td>media_to_endpoint resolution</td> <td>media_to_endpoint video_codec</td> <td>media_to_endpoint audio_codec</td> <td>media_to_endpoint bandwidth</td> </tr> <tr> <td><span datafld="index"/></td> <td><span datafld="date"/></td> <td><span datafld="time"/></td> <td><span datafld="type"/></td> <td><span datafld="cdr_events.event.conference.unique_id"/></td> <td><span datafld="event.name"/></td> <td><span datafld="cdr_events.event.ip_address"/></td> <td><span datafld="dn"/></td> <td><span datafld="h323_alias"/></td> <td><span datafld="configured_name"/></td> <td><span datafld="participant_id"/></td> <td><span datafld="time_in_conference"/></td> <td><span datafld="time_in_conference_in_minutes"/></td> <td><span datafld="disconnect_reason"/></td> <td><span datafld="media_from_endpoint.resolution"/></td> <td><span datafld="media_from_endpoint.video_codec"/></td> <td><span datafld="media_from_endpoint.audio_codec"/></td> <td><span datafld="media_from_endpoint.bandwidth"/></td> <td><span datafld="media_to_endpoint.resolution"/></td> <td><span datafld="media_to_endpoint.video_codec"/></td> <td><span datafld="media_to_endpoint.audio_codec"/></td> <td><span datafld="media_to_endpoint.bandwidth"/></td> </tr> </table> </body> </html>
Partager