MDN may have intermittent access issues April 18 13:00 - April 19 01:00 UTC. See whistlepig.mozilla.org for all notifications.

mozilla

Revision 263809 of Présentation de RSS

  • Raccourci de la révision : RSS/Premiers_pas/Présentation_de_RSS
  • Titre de la révision : Présentation de RSS
  • ID de la révision : 263809
  • Créé :
  • Créateur : Pitchum
  • Version actuelle ? Non
  • Commentaire début de traduction

Contenu de la révision

Cette page explique ce qu'est RSS. Vous n'allez pas créer vos propres fichiers RSS tout de suite, mais vous allez découvrir la façon dont RSS est utilisé en général ainsi que des fichiers RSS d'exemple des utilisations les plus courantes. Vous aurez aussi droit à un petit historique à propos de RSS.

Qu'est ce que RSS ?

Les versions de RSS les plus populaires sont les langages de balisage XML utilisés pour la syndication. (Bien qu'il existe des formats RSS basés sur RDF tels que RSS 0.90 et RSS 1.0 qui sont aujourd'hui dépassés.) Les utilisations les plus courantes de la syndication RSS se font pour la syndication des sites Web récents, des blogs, des radios IP et des TV IP.

Ce tutoriel traite essentiellement de RSS 2.0, mais évoque certains aspects spécifiques aux autres versions de RSS.

On n'écrit presque jamais du RSS à la main. La plupart du temps, c'est un programme côté serveur (en général écrit en PHP, Java, C# ou Python) qui s'en occupe. Cependant, pour les besoins du tutoriel, nous allons écrire nos propres fichiers RSS à la main.

Bref historique de RSS

En mars 1999 Netscape a sorti RSS 0.90. On était alors bien loin du RSS d'aujourd'hui. Il ne s'agissait pas réellement d'un format de syndication mais plutôt d'un format fournissant le résumé d'un site Web. En fait, à l'époque, RSS ne signifiait pas encore Really Simple Syndication, mais Rich Site Summary (NdT : Résumé pour site riche).

En juillet 1999 sort RSS 0.91 de Netscape. Tout comme RSS 0.90, le RSS 0.91 de Netscape était un format destiné à fournir le résumé d'un site Web riche et non pas un format de syndication (comme c'est le cas aujourd'hui). Le RSS 0.91 de Netscape a été concu pour simplifier les choses. En effet, RSS 0.90 était basé sur du RDF, que beaucoup trouvaient particulièrement complexe. Le RSS 0.91 de Netscape était quant à lui basé uniquement sur du XML et ajoutait un DTD permettant d'utiliser de nombreuses entités (que l'on trouve généralement en HTML).

Dès lors, Netscape déclara comme "déprécié" le format RSS 0.90 basé sur RDF et demanda à tout le monde d'utiliser le RSS 0.91 de Netscape qui lui, était basé sur du XML.

En juin 2000 sort le RSS 0.91 de Userland. Et oui, vous l'avez compris, il existe bien 2 versions différentes de RSS 0.91. La différence entre ces 2 versions de RSS 0.91 (RSS 0.91 de Netscape et RSS 0.91 de Userland) est que le RSS 0.91 de Userland ne possède pas le DTD du RSS 0.91 de Netscape, et donc ne dispose pas des entités supplémentaires dont dispose le RSS 0.91 de Netscape (et que l'on trouve généralement en HTML). En dehors de ça, ils sont similaires. Techniquement, le RSS 0.91 de Userland n'est qu'une version moins complète du RSS 0.91 de Netscape.

Le reste est encore à traduire





In December of 2000 the RSS-DEV working group released RSS 1.0. This version of RSS was no longer purely XML-based, but was RDF-based (like the original and now deprecated RSS 0.90). The RSS-DEV working group changed what RSS stood for, and made it stand for RDF Site Summary. (At least, this is that it stood for for their version of RSS.)

So at this point we had Netscape's RSS 0.91, Userland's RSS 0.91, and the RSS-DEV working group's RSS 1.0.

Later that same December Userland released RSS 0.92. RSS 0.92 was meant to replace Userland's RSS 0.91. (If you notice though, the RSS versioning number got all messed up at this point. RSS 0.92 is newer than RSS 1.0.)

So at this point we had Netscape's RSS 0.91, the RSS-DEV working group's RSS 1.0, and Userland's RSS 0.92.

In April 2001 Userland released a draft for RSS 0.93. This version of RSS was never made "final" and was only ever a draft, and never became a replacement for Userland's RSS 0.92.

In August 2002 Userland released a draft for RSS 0.94. Like RSS 0.93, this version of RSS was never made "final" and was only ever a draft, and never became a replacement for Userland's RSS 0.92.

So at this point we still had Netscape's RSS 0.91, the RSS-DEV working group's RSS 1.0, and Userland's RSS 0.92. (Although some were using RSS 0.93 and RSS 0.94 even though they weren't suppose to.)

In September 2002 Userland released RSS 2.0. RSS 2.0 was meant to be a replacement for RSS 0.92 (and the RSS 0.93 and RSS 0.94 drafts that no one was suppose to use). Userland bumped up the version number all the way up to 2.0 because the RSS-DEV working group already used 1.0 with their RDF-based RSS 1.0.

So at this point we had Netscape's RSS 0.91, the RSS-DEV working group's RSS 1.0, and Userland's RSS 2.0.

Now, the story does not quite end there. Once in November 2002 and another time in January 2003, RSS 2.0 was changed from its original specification, by Userland. And although these are each are different, they all label themselves as RSS 2.0 on the <rss> element.

So now, at this point, we still have Netscape's RSS 0.91 (since Netscape never deprecated it) although most people don't use it anymore. Most people use either the RDF-based RSS 1.0 or the XML-based RSS 2.0. With the XML-based RSS 2.0 seeming to be the most popular. (This tutorial uses RSS 2.0.)

How RSS is Used Today

Today, RSS is mostly used for syndication. Syndication is the process of telling others that you have content for them to consume. In other words, when you syndicate, you are telling everyone something like: "Hey everyone, I've got articles that I want everyone to come and read. Just subscribe to my RSS feed and you will be able to get the latest ones all the time.".

NOTE: If you provide a non-password-protected RSS feed, you are implicitly giving everyone permission to use the contents in you RSS feed in almost any way they see fit. They can read it. The can make local copies of it. They can share that local copy. They can put it on their web site. They can even re-syndicated it. And more.

If you don't want any of that done, then don't put it in a non-password-protected RSS feed. (And don't make the password public of course.)

News web sites use RSS to provide everyone with a list of their newest articles. For example:

   
    <?xml version="1.0"?>

    <rss version="2.0">
    
        <channel>
            <title>Example News Site</title>
            <description>This is an Example News Site.</description>
            <lastBuildDate>Wed, 27 Jul 2005 00:30:30 -0700</lastBuildDate>
            <link>http://news.example.com/</link>

            <item>
                <title>News Flash: I Like Bread</title>
                <guid>4d4a0a12-f188-4c97-908b-eea27213c2fe</guid>
                <pubDate>Wed, 27 Jul 2005 00:30:30 -0700</pubDate>
                <link>http://news.example.com/artcle/554</link>
            </item>
            <item>
                <title>Big News Today: Birds Fly</title>
                <guid>c4a63f09-b45b-466b-8773-6ff264001ab7</guid>
                <pubDate>Tue, 19 Jul 2005 04:32:51 -0700</pubDate>
                <link>http://news.example.com/artcle/553</link>
            </item>
            <item>
                <title>Fire is Hot</title>
                <guid>c1795324-d5ea-44fa-95b1-b5ce2090d4f1</guid>
                <pubDate>Sun, 15 May 2005 13:02:08 -0700</pubDate>
                <link>http://news.example.com/artcle/552</link>
            </item>
        </channel>
    
    </rss>
    

Bloggers use RSS to provide everyone with a list of their newest blog posts. For example:

   
    <?xml version="1.0"?>

    <rss version="2.0">
    
        <channel>
            <title>Joe Blow's Blog</title>
            <description>This is the Weblog of Joe Blow</description>
            <lastBuildDate>Sun, 15 May 2005 13:02:08 -0500</lastBuildDate>
            <link>http://joe-blow.example.net/</link>

            <item>
                <title>I Be Blogging...</title>
                <guid>http://joe-blow.example.net/log/21</guid>
                <pubDate>Sun, 15 May 2005 13:02:08 -0500</pubDate>
                <link>http://joe-blow.example.net/log/21</link>
            </item>
            <item>
                <title>I am so SMRT</title>
                <guid>http://joe-blow.example.net/log/20</guid>
                <pubDate>Sat, 14 May 2005 22:19:18 -0500</pubDate>
                <link>http://joe-blow.example.net/log/20</link>
            </item>
            <item>
                <title>Huh?</title>
                <guid>http://joe-blow.example.net/log/19</guid>
                <pubDate>Sat, 14 May 2005 09:55:59 -0500</pubDate>
                <link>http://joe-blow.example.net/log/19</link>
            </item>
            <item>
                <title>Black Cat Spotted</title>
                <guid>http://joe-blow.example.net/log/18</guid>
                <pubDate>Fri, 13 May 2005 13:13:13 -0500</pubDate>
                <link>http://joe-blow.example.net/log/18</link>
            </item>
        </channel>
    
    </rss>
    

Those who create IPradio use RSS to allow users to broadcatch their shows. For example:

   
    <?xml version="1.0"?>

    <rss version="2.0">
    
        <channel>
            <title>Joe's IPradio Show</title>
            <description>The best IPradio Show on the Internet, staring Joe!</description>
            <lastBuildDate>Mon, 15 Aug 2005 16:12:37 -0400</lastBuildDate>
            <link>http://joe.ipradio.example.net/</link>

            <item>
                <title>I C UR Tan Line</title>
                <guid>http://joe.ipradio.example.net/show/55</guid>
                <pubDate>Mon, 15 Aug 2005 16:11:57 -0400</pubDate>
                <enclosure url="http://joe.ipradio.example.net/show/55"
                           length="4487216"
                           type="application/ogg"
                />
            </item>
            <item>
                <title>Car Care for Car Fanatics</title>
                <guid>http://joe.ipradio.example.net/show/54</guid>
                <pubDate>Mon, 8 Aug 2005 13:12:12 -0400</pubDate>
                <enclosure url="http://joe.ipradio.example.net/show/54"
                           length="4892178"
                           type="audio/x-mp3"
                />
            </item>
            <item>
                <title>Best Beaches in BC</title>
                <guid>http://joe.ipradio.example.net/show/53</guid>
                <pubDate>Mon, 1 Aug 2005 18:22:14 -0400</pubDate>
                <enclosure url="http://joe.ipradio.example.net/show/53"
                           length="3984215"
                           type="application/ogg"
                />
            </item>
        </channel>
    
    </rss>
    

NOTE: Broadcatching of IPradio is sometimes call Podcasting. However, it is suggested that this term is not used. Apple seems to own a registered trademark on the term. And thus owns the word.

Those who create IPTV use RSS to allow users to broadcatch their shows. For example:

   
    <?xml version="1.0"?>

    <rss version="2.0">
    
        <channel>
            <title>Kate's IPTV Show</title>
            <description>Watch it or else!  You know you want to.</description>
            <lastBuildDate>Tue, 23 Aug 2005 21:02:05 -0800</lastBuildDate>
            <link>http://katetv.example.com/</link>

            <item>
                <title>This is Fun</title>
                <guid>http://katetv.example.com/show/4</guid>
                <pubDate>Tue, 23 Aug 2005 21:02:05 -0800</pubDate>
                <enclosure url="http://katetv.example.com/show/4"
                           length="1911146"
                           type="application/ogg"
                />
            </item>
            <item>
                <title>Watch This</title>
                <guid>http://katetv.example.com/show/3</guid>
                <pubDate>Tue, 16 Aug 2005 16:11:57 -0400</pubDate>
                <enclosure url="http://katetv.example.com/show/3"
                           length="1387442"
                           type="application/ogg"
                />
            </item>
            <item>
                <title>It is me again</title>
                <guid>http://katetv.example.com/show/2</guid>
                <pubDate>Tue, 9 Aug 2005 13:12:12 -0400</pubDate>
                <enclosure url="http://katetv.example.com/show/2"
                           length="1894877"
                           type="video/mpeg"
                />
            </item>
            <item>
                <title>Hello</title>
                <guid>http://katetv.example.com/show/1</guid>
                <pubDate>Tue, 2 Aug 2005 18:22:14 -0400</pubDate>
                <enclosure url="http://katetv.example.com/show/1"
                           length="17442215"
                           type="application/ogg"
                />
            </item>
        </channel>
    
    </rss>
    

The observant reader may have noticed that the news web site and blogger examples were the same type of RSS. And also that the IPradio and IPTV examples were the same type of RSS. In fact, the only real difference between the news/blogger RSS and the IPradio/IPTV RSS is that the news/blogger RSS uses the <link> element and the IPradio/IPTV RSS uses the <enclosure> element.

NOTE: These RSS examples are very very simple. And were designed to give you an idea about what RSS basically looks like. All these RSS examples are very minimal. When you create your own RSS feeds, you will likely want to make them more complex than these and include additional RSS elements and make use of the various RSS Modules.

{{template.Next("RSS:Getting_Started:Why_use_RSS")}}

{{ wiki.languages( { "en": "en/RSS/Getting_Started/What_is_RSS" } ) }}

Source de la révision

<p>
</p><p>Cette page explique ce qu'est RSS. Vous n'allez pas créer vos propres fichiers RSS tout de suite, mais vous allez découvrir la façon dont RSS est utilisé en général ainsi que des fichiers RSS d'exemple des utilisations les plus courantes. Vous aurez aussi droit à un petit historique à propos de RSS.
</p>
<h3 name="Qu.27est_ce_que_RSS_.3F"> Qu'est ce que RSS ? </h3>
<p>Les <a href="fr/RSS/Version">versions de RSS</a> les plus populaires sont les langages de balisage <a href="fr/XML">XML</a> utilisés pour la syndication. (Bien qu'il existe des formats RSS basés sur <a href="fr/RDF">RDF</a> tels que <a href="fr/RSS/Version/0.90">RSS 0.90</a> et <a href="fr/RSS/Version/1.0">RSS 1.0</a> qui sont aujourd'hui dépassés.) Les utilisations les plus courantes de la syndication RSS se font pour la syndication des sites Web récents, des blogs, des radios IP et des TV IP.
</p><p>Ce tutoriel traite essentiellement de <a href="fr/RSS/Version/2.0">RSS 2.0</a>, mais évoque certains aspects spécifiques aux autres <a href="fr/RSS/Version">versions de RSS</a>.
</p><p>On n'écrit presque jamais du RSS à la main. La plupart du temps, c'est un programme côté serveur (en général écrit en PHP, Java, C# ou Python) qui s'en occupe.
Cependant, pour les besoins du tutoriel, nous allons écrire nos propres fichiers RSS à la main.
</p>
<h3 name="Bref_historique_de_RSS"> Bref historique de RSS </h3>
<p>En mars 1999 Netscape a sorti <a href="fr/RSS/Version/0.90">RSS 0.90</a>. On était alors bien loin du RSS d'aujourd'hui. Il ne s'agissait pas réellement d'un format de syndication mais plutôt d'un format fournissant le résumé d'un site Web. En fait, à l'époque, RSS ne signifiait pas encore <b>Really Simple Syndication</b>, mais <b>Rich Site Summary</b> (NdT : Résumé pour site riche).
</p><p>En juillet 1999 sort <a href="fr/RSS/Version/0.91/Netscape">RSS 0.91 de Netscape</a>. Tout comme <a href="fr/RSS/Version/0.90">RSS 0.90</a>, le RSS 0.91 de Netscape était un format destiné à fournir le résumé d'un site Web riche et non pas un format de syndication (comme c'est le cas aujourd'hui). Le RSS 0.91 de Netscape a été concu pour simplifier les choses. En effet, RSS 0.90 était basé sur du <a href="fr/RDF">RDF</a>, que beaucoup trouvaient particulièrement complexe. Le RSS 0.91 de Netscape était quant à lui basé uniquement sur du <a href="fr/XML">XML</a> et ajoutait un <a href="fr/DTD">DTD</a> permettant d'utiliser de nombreuses entités (que l'on trouve généralement en <a href="fr/HTML">HTML</a>).
</p><p>Dès lors, Netscape déclara comme "déprécié" le format <a href="fr/RSS/Version/0.90">RSS 0.90</a> basé sur <a href="fr/RDF">RDF</a> et demanda à tout le monde d'utiliser le <a href="fr/RSS/Version/0.91/Netscape">RSS 0.91 de Netscape</a> qui lui, était basé sur du <a href="fr/XML">XML</a>.
</p><p>En juin 2000 sort le <a href="fr/RSS/Version/0.91/Userland">RSS 0.91 de Userland</a>. Et oui, vous l'avez compris, il existe bien 2 versions différentes de <a href="fr/RSS/Version/0.91">RSS 0.91</a>.
La différence entre ces 2 versions de <a href="fr/RSS/Version/0.91">RSS 0.91</a> (<a href="fr/RSS/Version/0.91/Netscape">RSS 0.91 de Netscape</a> et <a href="fr/RSS/Version/0.91/Userland">RSS 0.91 de Userland</a>) est que le RSS 0.91 de Userland ne possède pas le DTD du RSS 0.91 de Netscape, et donc ne dispose pas des entités supplémentaires dont dispose le RSS 0.91 de Netscape (et que l'on trouve généralement en <a href="fr/HTML">HTML</a>). En dehors de ça, ils sont similaires. Techniquement, le RSS 0.91 de Userland n'est qu'une version moins complète du RSS 0.91 de Netscape.
</p><p><b>Le reste est encore à traduire</b>
</p><p><br>
</p><p><br>
</p><p><br>
</p><p><br>
In December of 2000 the RSS-DEV working group released <a href="fr/RSS/Version/1.0">RSS 1.0</a>.  This version of RSS was no longer purely <a href="fr/XML">XML</a>-based, but was <a href="fr/RDF">RDF</a>-based (like the original and now deprecated <a href="fr/RSS/Version/0.90">RSS 0.90</a>).  The RSS-DEV working group changed what RSS stood for, and made it stand for <b>RDF Site Summary</b>.  (At least, this is that it stood for for their version of RSS.)
</p><p>So at this point we had <a href="fr/RSS/Version/0.91/Netscape">Netscape's RSS 0.91</a>, <a href="fr/RSS/Version/0.91/Userland">Userland's RSS 0.91</a>, and the RSS-DEV working group's <a href="fr/RSS/Version/1.0">RSS 1.0</a>.
</p><p>Later that same December Userland released <a href="fr/RSS/Version/0.92">RSS 0.92</a>.  RSS 0.92 was meant to replace <a href="fr/RSS/Version/0.91/Userland">Userland's RSS 0.91</a>.  (If you notice though, the RSS versioning number got all messed up at this point.  RSS 0.92 is newer than <a href="fr/RSS/Version/1.0">RSS 1.0</a>.)
</p><p>So at this point we had <a href="fr/RSS/Version/0.91/Netscape">Netscape's RSS 0.91</a>, the RSS-DEV working group's <a href="fr/RSS/Version/1.0">RSS 1.0</a>, and Userland's <a href="fr/RSS/Version/0.92">RSS 0.92</a>.
</p><p>In April 2001 Userland released a draft for <a href="fr/RSS/Version/0.93">RSS 0.93</a>.  This version of RSS was never made "final" and was only ever a draft, and never became a replacement for Userland's <a href="fr/RSS/Version/0.92">RSS 0.92</a>.
</p><p>In August 2002 Userland released a draft for <a href="fr/RSS/Version/0.94">RSS 0.94</a>.  Like <a href="fr/RSS/Version/0.93">RSS 0.93</a>, this version of RSS was never made "final" and was only ever a draft, and never became a replacement for Userland's <a href="fr/RSS/Version/0.92">RSS 0.92</a>.
</p><p>So at this point we <em>still</em> had <a href="fr/RSS/Version/0.91/Netscape">Netscape's RSS 0.91</a>, the RSS-DEV working group's <a href="fr/RSS/Version/1.0">RSS 1.0</a>, and Userland's <a href="fr/RSS/Version/0.92">RSS 0.92</a>.  (Although some were using <a href="fr/RSS/Version/0.93">RSS 0.93</a> and <a href="fr/RSS/Version/0.94">RSS 0.94</a> even though they weren't suppose to.)
</p><p>In September 2002 Userland released <a href="fr/RSS/Version/2.0">RSS 2.0</a>.  RSS 2.0 was meant to be a replacement for <a href="fr/RSS/Version/0.92">RSS 0.92</a> (and the <a href="fr/RSS/Version/0.93">RSS 0.93</a> and <a href="fr/RSS/Version/0.94">RSS 0.94</a> drafts that no one was suppose to use).  Userland bumped up the version number all the way up to <b>2.0</b> because the RSS-DEV working group already used <b>1.0</b> with their <a href="fr/RDF">RDF</a>-based <a href="fr/RSS/Version/1.0">RSS 1.0</a>.
</p><p>So at this point we had <a href="fr/RSS/Version/0.91/Netscape">Netscape's RSS 0.91</a>, the RSS-DEV working group's <a href="fr/RSS/Version/1.0">RSS 1.0</a>, and Userland's <a href="fr/RSS/Version/2.0">RSS 2.0</a>.
</p><p>Now, the story does not quite end there.  Once in November 2002 and another time in January 2003, <a href="fr/RSS/Version/2.0">RSS 2.0</a> was changed from its original specification, by Userland.  And although these are each are different, they all label themselves as RSS 2.0 on the <a href="fr/RSS/Element/rss">&lt;rss&gt;</a> element.
</p><p>So now, at this point, we still have <a href="fr/RSS/Version/0.91/Netscape">Netscape's RSS 0.91</a> (since Netscape never deprecated it) although most people don't use it anymore.  Most people use either the <a href="fr/RDF">RDF</a>-based <a href="fr/RSS/Version/1.0">RSS 1.0</a> or the <a href="fr/XML">XML</a>-based <a href="fr/RSS/Version/2.0">RSS 2.0</a>.  With the XML-based RSS 2.0 seeming to be the most popular.  (This tutorial uses <a href="fr/RSS/Version/2.0">RSS 2.0</a>.)
</p>
<h3 name="How_RSS_is_Used_Today"> How RSS is Used Today </h3>
<p>Today, RSS is mostly used for syndication.  Syndication is the process of telling others that you have content for them to consume.  In other words, when you syndicate, you are telling everyone something like: "Hey everyone, I've got articles that I want everyone to come and read.  Just subscribe to my RSS feed and you will be able to get the latest ones all the time.".
</p>
<div class="note">
<p><b>NOTE</b>: If you provide a non-password-protected RSS feed, you are implicitly giving everyone permission to use the contents in you RSS feed in almost any way they see fit.  They can read it.  The can make local copies of it.  They can share that local copy.  They can put it on their web site.  They can even re-syndicated it.  And more.
</p><p>If you don't want any of that done, then don't put it in a non-password-protected RSS feed.  (And don't make the password public of course.)
</p>
</div>
<p>News web sites use RSS to provide everyone with a list of their newest articles.  For example:
</p>
<pre class="eval">   <span class="plain">
    &lt;?xml version="1.0"?&gt;

    &lt;rss version="2.0"&gt;
    
        &lt;channel&gt;
            &lt;title&gt;Example News Site&lt;/title&gt;
            &lt;description&gt;This is an Example News Site.&lt;/description&gt;
            &lt;lastBuildDate&gt;Wed, 27 Jul 2005 00:30:30 -0700&lt;/lastBuildDate&gt;
            &lt;link&gt;http://news.example.com/&lt;/link&gt;

            &lt;item&gt;
                &lt;title&gt;News Flash: I Like Bread&lt;/title&gt;
                &lt;guid&gt;4d4a0a12-f188-4c97-908b-eea27213c2fe&lt;/guid&gt;
                &lt;pubDate&gt;Wed, 27 Jul 2005 00:30:30 -0700&lt;/pubDate&gt;
                &lt;link&gt;http://news.example.com/artcle/554&lt;/link&gt;
            &lt;/item&gt;
            &lt;item&gt;
                &lt;title&gt;Big News Today: Birds Fly&lt;/title&gt;
                &lt;guid&gt;c4a63f09-b45b-466b-8773-6ff264001ab7&lt;/guid&gt;
                &lt;pubDate&gt;Tue, 19 Jul 2005 04:32:51 -0700&lt;/pubDate&gt;
                &lt;link&gt;http://news.example.com/artcle/553&lt;/link&gt;
            &lt;/item&gt;
            &lt;item&gt;
                &lt;title&gt;Fire is Hot&lt;/title&gt;
                &lt;guid&gt;c1795324-d5ea-44fa-95b1-b5ce2090d4f1&lt;/guid&gt;
                &lt;pubDate&gt;Sun, 15 May 2005 13:02:08 -0700&lt;/pubDate&gt;
                &lt;link&gt;http://news.example.com/artcle/552&lt;/link&gt;
            &lt;/item&gt;
        &lt;/channel&gt;
    
    &lt;/rss&gt;
    </span>
</pre>
<p>Bloggers use RSS to provide everyone with a list of their newest blog posts.  For example:
</p>
<pre class="eval">   <span class="plain">
    &lt;?xml version="1.0"?&gt;

    &lt;rss version="2.0"&gt;
    
        &lt;channel&gt;
            &lt;title&gt;Joe Blow's Blog&lt;/title&gt;
            &lt;description&gt;This is the Weblog of Joe Blow&lt;/description&gt;
            &lt;lastBuildDate&gt;Sun, 15 May 2005 13:02:08 -0500&lt;/lastBuildDate&gt;
            &lt;link&gt;http://joe-blow.example.net/&lt;/link&gt;

            &lt;item&gt;
                &lt;title&gt;I Be Blogging...&lt;/title&gt;
                &lt;guid&gt;http://joe-blow.example.net/log/21&lt;/guid&gt;
                &lt;pubDate&gt;Sun, 15 May 2005 13:02:08 -0500&lt;/pubDate&gt;
                &lt;link&gt;http://joe-blow.example.net/log/21&lt;/link&gt;
            &lt;/item&gt;
            &lt;item&gt;
                &lt;title&gt;I am so SMRT&lt;/title&gt;
                &lt;guid&gt;http://joe-blow.example.net/log/20&lt;/guid&gt;
                &lt;pubDate&gt;Sat, 14 May 2005 22:19:18 -0500&lt;/pubDate&gt;
                &lt;link&gt;http://joe-blow.example.net/log/20&lt;/link&gt;
            &lt;/item&gt;
            &lt;item&gt;
                &lt;title&gt;Huh?&lt;/title&gt;
                &lt;guid&gt;http://joe-blow.example.net/log/19&lt;/guid&gt;
                &lt;pubDate&gt;Sat, 14 May 2005 09:55:59 -0500&lt;/pubDate&gt;
                &lt;link&gt;http://joe-blow.example.net/log/19&lt;/link&gt;
            &lt;/item&gt;
            &lt;item&gt;
                &lt;title&gt;Black Cat Spotted&lt;/title&gt;
                &lt;guid&gt;http://joe-blow.example.net/log/18&lt;/guid&gt;
                &lt;pubDate&gt;Fri, 13 May 2005 13:13:13 -0500&lt;/pubDate&gt;
                &lt;link&gt;http://joe-blow.example.net/log/18&lt;/link&gt;
            &lt;/item&gt;
        &lt;/channel&gt;
    
    &lt;/rss&gt;
    </span>
</pre>
<p>Those who create IPradio use RSS to allow users to broadcatch their shows.  For example:
</p>
<pre class="eval">   <span class="plain">
    &lt;?xml version="1.0"?&gt;

    &lt;rss version="2.0"&gt;
    
        &lt;channel&gt;
            &lt;title&gt;Joe's IPradio Show&lt;/title&gt;
            &lt;description&gt;The best IPradio Show on the Internet, staring Joe!&lt;/description&gt;
            &lt;lastBuildDate&gt;Mon, 15 Aug 2005 16:12:37 -0400&lt;/lastBuildDate&gt;
            &lt;link&gt;http://joe.ipradio.example.net/&lt;/link&gt;

            &lt;item&gt;
                &lt;title&gt;I C UR Tan Line&lt;/title&gt;
                &lt;guid&gt;http://joe.ipradio.example.net/show/55&lt;/guid&gt;
                &lt;pubDate&gt;Mon, 15 Aug 2005 16:11:57 -0400&lt;/pubDate&gt;
                &lt;enclosure url="http://joe.ipradio.example.net/show/55"
                           length="4487216"
                           type="application/ogg"
                /&gt;
            &lt;/item&gt;
            &lt;item&gt;
                &lt;title&gt;Car Care for Car Fanatics&lt;/title&gt;
                &lt;guid&gt;http://joe.ipradio.example.net/show/54&lt;/guid&gt;
                &lt;pubDate&gt;Mon, 8 Aug 2005 13:12:12 -0400&lt;/pubDate&gt;
                &lt;enclosure url="http://joe.ipradio.example.net/show/54"
                           length="4892178"
                           type="audio/x-mp3"
                /&gt;
            &lt;/item&gt;
            &lt;item&gt;
                &lt;title&gt;Best Beaches in BC&lt;/title&gt;
                &lt;guid&gt;http://joe.ipradio.example.net/show/53&lt;/guid&gt;
                &lt;pubDate&gt;Mon, 1 Aug 2005 18:22:14 -0400&lt;/pubDate&gt;
                &lt;enclosure url="http://joe.ipradio.example.net/show/53"
                           length="3984215"
                           type="application/ogg"
                /&gt;
            &lt;/item&gt;
        &lt;/channel&gt;
    
    &lt;/rss&gt;
    </span>
</pre>
<div class="note">
<p><b>NOTE</b>: Broadcatching of IPradio is sometimes call Podcasting.  However, it is suggested that this term is not used.  Apple seems to own a registered trademark on the term.  And thus <b>owns</b> the word.
</p>
</div>
<p>Those who create IPTV use RSS to allow users to broadcatch their shows.  For example:
</p>
<pre class="eval">   <span class="plain">
    &lt;?xml version="1.0"?&gt;

    &lt;rss version="2.0"&gt;
    
        &lt;channel&gt;
            &lt;title&gt;Kate's IPTV Show&lt;/title&gt;
            &lt;description&gt;Watch it or else!  You know you want to.&lt;/description&gt;
            &lt;lastBuildDate&gt;Tue, 23 Aug 2005 21:02:05 -0800&lt;/lastBuildDate&gt;
            &lt;link&gt;http://katetv.example.com/&lt;/link&gt;

            &lt;item&gt;
                &lt;title&gt;This is Fun&lt;/title&gt;
                &lt;guid&gt;http://katetv.example.com/show/4&lt;/guid&gt;
                &lt;pubDate&gt;Tue, 23 Aug 2005 21:02:05 -0800&lt;/pubDate&gt;
                &lt;enclosure url="http://katetv.example.com/show/4"
                           length="1911146"
                           type="application/ogg"
                /&gt;
            &lt;/item&gt;
            &lt;item&gt;
                &lt;title&gt;Watch This&lt;/title&gt;
                &lt;guid&gt;http://katetv.example.com/show/3&lt;/guid&gt;
                &lt;pubDate&gt;Tue, 16 Aug 2005 16:11:57 -0400&lt;/pubDate&gt;
                &lt;enclosure url="http://katetv.example.com/show/3"
                           length="1387442"
                           type="application/ogg"
                /&gt;
            &lt;/item&gt;
            &lt;item&gt;
                &lt;title&gt;It is me again&lt;/title&gt;
                &lt;guid&gt;http://katetv.example.com/show/2&lt;/guid&gt;
                &lt;pubDate&gt;Tue, 9 Aug 2005 13:12:12 -0400&lt;/pubDate&gt;
                &lt;enclosure url="http://katetv.example.com/show/2"
                           length="1894877"
                           type="video/mpeg"
                /&gt;
            &lt;/item&gt;
            &lt;item&gt;
                &lt;title&gt;Hello&lt;/title&gt;
                &lt;guid&gt;http://katetv.example.com/show/1&lt;/guid&gt;
                &lt;pubDate&gt;Tue, 2 Aug 2005 18:22:14 -0400&lt;/pubDate&gt;
                &lt;enclosure url="http://katetv.example.com/show/1"
                           length="17442215"
                           type="application/ogg"
                /&gt;
            &lt;/item&gt;
        &lt;/channel&gt;
    
    &lt;/rss&gt;
    </span>
</pre>
<p>The observant reader may have noticed that the <i>news web site</i> and <i>blogger</i> examples were the same type of RSS.  And also that the <i>IPradio</i> and <i>IPTV</i> examples were the same type of RSS.  In fact, the only real difference between the news/blogger RSS and the IPradio/IPTV RSS is that the news/blogger RSS uses the <a href="fr/RSS/Element/link">&lt;link&gt;</a> element and the IPradio/IPTV RSS uses the <a href="fr/RSS/Element/enclosure">&lt;enclosure&gt;</a> element.
</p>
<div class="note">
<p><b>NOTE</b>: These RSS examples are very very simple.  And were designed to give you an idea about what RSS basically looks like.  All these RSS examples are very minimal.  When you create your own RSS feeds, you will likely want to make them more complex than these and include additional <a href="fr/RSS/Element">RSS elements</a> and make use of the various <a href="fr/RSS/Module">RSS Modules</a>.
</p>
</div>
<p>{{template.Next("RSS:Getting_Started:Why_use_RSS")}}
</p>{{ wiki.languages( { "en": "en/RSS/Getting_Started/What_is_RSS" } ) }}
Revenir à cette révision