Bonjour,

J'ai un fichier 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
<?xml version="1.0" encoding="iso-8859-1" ?>
<rss version="2.0">
	<channel>
		<title><![CDATA[NOM1]]></title>
		<link><![CDATA[http://nom1.fr/infos/]]></link>
		<description><![CDATA[NOM 1 RSS 2.0]]></description>
		<copyright>Copyright nom1</copyright>
		<lastBuildDate>Wed, 24 Feb 2008 16:56:00 GMT</lastBuildDate>
 
		<image>
			<title><![CDATA[Logo]]></title>
			<url><![CDATA[http://nom1.fr/rss/img/logonom1.gif]]></url>
			<link><![CDATA[http://nom1.fr/infos/]]></link>
		</image>
 
		<image>
			<title><![CDATA[Pub]]></title>
			<url><![CDATA[http://nom1.fr/rss/img/pub_nom1.gif]]></url>
			<link><![CDATA[http://nom1.fr/pub_nom1.html/]]></link>
		</image>
 
		<item>
			<title><![CDATA[Enseignement supérieur]]></title>
			<link><![CDATA[http://nom1/infos/news1.html]]></link>
			<description><![CDATA[Un départ sur six ne sera pas remplacé]]></description>
			<enclosure url="http://nom1.fr/rss/img/img1.jpg" type="image/jpg" length="" />
			<pubDate>Wed, 24 Feb 2008 16:56:00 +0000</pubDate>
		</item>
 
		<item>
			<title><![CDATA[JO 2008]]></title>
			<link><![CDATA[http://nom1/infos/news2.html]]></link>
			<description><![CDATA[La fin des JO 2008]]></description>
			<enclosure url="http://nom1.fr/rss/img/img2.jpg" type="image/jpg" length="" />
			<pubDate>Wed, 15 Feb 2008 16:52:00 +0000</pubDate>
		</item>
	</channel>
</rss>
J'aimerai savoir comment faire pour récuper le contenu de url, type et length dans
Code : Sélectionner tout - Visualiser dans une fenêtre à part
<enclosure url="http://nom1.fr/rss/img/img2.jpg" type="image/jpg" length="" />
Des balises item

Merci