Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The following table illustrates the mapping between RSS and Syndication Object Model (which in turn is the same as the Atom model):

RSS document

Mapped into Atom

<?xml version="1.0"?>
<rss version="2.0">
    <channel>

<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-us">

             <title>Liftoff News</title>

     <title type="text">Liftoff News</title>

             <link>http://liftoff.msfc.nasa.gov/</link>

     <link rel="alternate" href="http://liftoff.msfc.nasa.gov/" />

             <description>Liftoff to Space Exploration.</description>

     <subtitle type="text">Liftoff to Space Exploration.</subtitle>

             <language>en-us</language>

     //see the attribute "xml:lang" of "feed" element

             <copyright>Copyright 2002, Spartanburg Herald-Journal</copyright>

     <rights>Copyright 2002, Spartanburg Herald-Journal</rights>

             <managingEditor>editor@example.com</managingEditor>

     <author>
        <name>editor</name>
        <email>editor@example.com</email>
    </author>

             <lastBuildDate>Tue, 10 Jun 2003 09:41:01 GMT</lastBuildDate>

     <updated>2003-06-10T09:41:01Z</updated>

             <category domain="http://www.fool.com/cusips">MSFT</category>
        <category domain="http://www.fool.com/musips">MOTO</category>

     <category scheme="http://www.fool.com/cusips" label="MSFT"/>
    <category scheme="http://www.fool.com/musips" label="MOTO"/>

       <generator>Weblog Editor 2.0</generator>

     <generator>Weblog Editor 2.0</generator>

             <image>
            <url>http://liftoff.msfc.nasa.gov/news.gif</url>
            <title>Litoff News</title>
            <link>http://liftoff.msfc.nasa.gov/</link>
            <width>100</width>
            <height>100<height>
            <description>News</description>
         </image>

     <logo>http://liftoff.msfc.nasa.gov/news.gif</logo>

       <item>...</item>

     <entry>...</entry>

             <item>...</item>

     <entry>...</entry>

      <item>

     <entry>

                     <title>Star City</title>

             <title type="text">Star City</title>

                     <link>http://liftoff.msfc.nasa.gov/news/2003/news-starcity.asp</link>

             <link rel="alternate" href="http://liftoff.msfc.nasa.gov/news/2003/news-starcity.asp"/>

                     <description>How do Americans get ready to work with Russians aboard the International Space Station? They take a crash course in culture, language and protocol at Russia's <a href="http://howe.iki.rssi.ru/GCTC/gctc_e.htm">Star City</a>.</description>

             <summary type="text">How do Americans get ready to work with Russians aboard the International Space Station? They take a crash course in culture, language and protocol at Russia's <a href="http://howe.iki.rssi.ru/GCTC/gctc_e.htm">Star City</a>.</summary>

                     <author>author1@rssboard.org</author>

             <author>
            <name>author1</name>
            <email>author1@rssboard.org</email>
        </author>

                     <category domain="http://www.fool.com/cusips">MSFT</category>
            <category domain="http://www.fool.com/musips">MOTO</category>

             <category scheme="http://www.fool.com/cusips" label="MSFT" />
        <category scheme="http://www.fool.com/musips" label="MOTO" />

                   <enclosure url="http://www.scripting.com/mp3s/weatherReportSuite.mp3" length="12216320" type="audio/mpeg" />

           <link rel="enclosure" type="audio/mpeg" length="12216320" href="http://www.scripting.com/mp3s/weatherReportSuite.mp3"/>

                     <guid>http://liftoff.msfc.nasa.gov/2003/06/03.html#item573</guid>

             <id>http://liftoff.msfc.nasa.gov/2003/06/03.html#item573</id>

                     <pubDate>Tue, 03 Jun 2003 09:39:21 GMT</pubDate>

             <published>2003-06-03T09:39:21Z</published>

             </item>

     </entry>

     </channel>
</rss>

</feed>

Examples

...