Très heureux de vous retrouver ( ça fait un petit moment que j'ai un peu laché la programmation) .
Je m'y remet en faisant un fichier xml qui a l'air de marcher, que j'arrive à relire avec un parser php que j'ai adapté, mais quand je veux le tester avec un lecteur rss notamment avec feed validator , j'obtiens pas mal d'erreur que je ne comprend pas ! J'ai essayé de regarder les fichiers d'autres sites mais sans succes
voila la page d'erreur que j'obtiens :
Citation :
Sorry
This feed does not validate.
line 7, column 0: Undefined item element: titre [help]
<titre>SUPER AFFAIRE (pour le prix d'un loyer par mois : achetez) 3P 73 ...
line 10, column 0: Undefined item element: url [help]
<url>http://www.pasdagence.com/public/fichedetailpic.php?id=4455</url>
line 11, column 0: Undefined item element: image [help]
<image>http://www.pasdagence.com/miniaturespetite/photodefaut2.gif</image>
line 13, column 3: Missing channel element: description [help]
</channel> ^
Source: http://www.pasdagence.com/export2_xml.php
<?xml version="1.0" encoding="ISO-8859-1"?>
<rss version="2.0">
<channel>
<title>Flux RSS de Padagence.com</title>
<link>http://www.pasdagence.com</link>
<item>
<titre>SUPER AFFAIRE (pour le prix d'un loyer par mois : achetez) 3P 73 M2 ENVIRON A 5MN DE NICE a DRAP LA CONDAMINE.06.12.92.12.90
110.000EUROS AFFAIR</titre>
<description>DRAP/NICE</description>
<url>http://www.pasdagence.com/public/fichedetailpic.php?id=4455</url>
<image>http://www.pasdagence.com/miniaturespetite/photodefaut2.gif</image>
</item>
</channel>
</rss>
This feed does not validate.
line 7, column 0: Undefined item element: titre [help]
<titre>SUPER AFFAIRE (pour le prix d'un loyer par mois : achetez) 3P 73 ...
line 10, column 0: Undefined item element: url [help]
<url>http://www.pasdagence.com/public/fichedetailpic.php?id=4455</url>
line 11, column 0: Undefined item element: image [help]
<image>http://www.pasdagence.com/miniaturespetite/photodefaut2.gif</image>
line 13, column 3: Missing channel element: description [help]
</channel> ^
Source: http://www.pasdagence.com/export2_xml.php
<?xml version="1.0" encoding="ISO-8859-1"?>
<rss version="2.0">
<channel>
<title>Flux RSS de Padagence.com</title>
<link>http://www.pasdagence.com</link>
<item>
<titre>SUPER AFFAIRE (pour le prix d'un loyer par mois : achetez) 3P 73 M2 ENVIRON A 5MN DE NICE a DRAP LA CONDAMINE.06.12.92.12.90
110.000EUROS AFFAIR</titre>
<description>DRAP/NICE</description>
<url>http://www.pasdagence.com/public/fichedetailpic.php?id=4455</url>
<image>http://www.pasdagence.com/miniaturespetite/photodefaut2.gif</image>
</item>
</channel>
</rss>
Si quelqu'un a la solution ...
PS: je pense que ça doit etre une erreur de rien du tout mais ou ?
