Erreur dans mon flux rss

Luniz -  
 Luniz -
Bonjour,

J ai passé mon flux rss au validator rss W3C

Et il me dit:

Missing atom:link with rel="self"

Quel est l erreur?

ça veut dire quoi atom svp ?

Merci
Configuration: Windows XP / Internet Explorer 7.0

3 réponses

  1. avion-f16 Messages postés 19182 Date d'inscription   Statut Contributeur Dernière intervention   4 511
     
    Il faudrait nous montrer ton XML.
    Un flux n'est pas forcément en RSS, il y a d'autres formats comme Atom.
    Ton ordinateur ne fait pas ce que tu veux ... mais ce que tu lui dis de faire.
    0
  2. Luniz
     
    Mon flux RSS n'affiche pas les news de mon site :

    <?php echo '<?xml version="1.0" encoding="UTF-8"?>' ?>
    <rss version="2.0">
    <channel>
    <title>Actualités</title>
    <link>http://www.monsite.fr</link>
    <description>Les dernières actualités</description>
    <?php

    require_once("connect.php");

    mysql_query("SET NAMES 'UTF-8'");

    $sql="SELECT * FROM news ORDER BY date DESC";

    $req=mysql_query($sql);

    while($data=mysql_fetch_assoc($req)) {
    echo "<item>\n";
    echo "<title>{$data['titre']}</title>\n";
    echo "<link>https://www.pagesjaunes.fr/\n";
    echo "<description><![CDATA[".$data["contenu"]."]]></description>\n";
    echo "<pubDate>".date("D,d M Y H:i:s",strtotime($data['date']))." GMT </pubDate>\n";
    echo "</item>\n";
    }
    ?>
    </channel>
    </rss>
    0