salut,
je ne sais pas trop par ou commencer.. je dois lire ce 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
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41 <icestats> <client_connections>5479</client_connections> <clients>4</clients> <connections>5569</connections> <file_connections>588</file_connections> <listener_connections>434</listener_connections> <server>Icecast 2.3.1</server> <server_start>Mon, 13 Mar 2006 22:56:49 +0100</server_start> <source_client_connections>72</source_client_connections> <source_relay_connections>0</source_relay_connections> <source_total_connections>72</source_total_connections> <sources>1</sources> <stats>0</stats> <stats_connections>0</stats_connections> <source mount="/encoder"> <audio_info> ice-samplerate=44100;ice-bitrate=128;ice-channels=2 </audio_info> <bitrate>128</bitrate> <genre>Multi</genre> <ice-bitrate>128</ice-bitrate> <ice-channels>2</ice-channels> <ice-samplerate>44100</ice-samplerate> <listener_peak>2</listener_peak> <listeners>2</listeners> <listenurl>http://localhost:8000/test</listenurl> <max_listeners>unlimited</max_listeners> <public>1</public> <server_description>Live</server_description> <server_name>Live</server_name> <server_type>audio/aacp</server_type> <slow_listeners>1</slow_listeners> <source_ip>xxx</source_ip> <stream_start>Fri, 14 Apr 2006 11:54:15 +0200</stream_start> <total_bytes_read>1282055125</total_bytes_read> <total_bytes_sent>1340359993</total_bytes_sent> </source> </icestats>
il faudrait bien que je sache lire seulement la node <listeners> de la node <source mount="/encoder"> ...... </node>
Comment puis-je faire?
Merci
Partager