...
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"?> | <?xml version="1.0" encoding="utf-8"?> |
<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> |
<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 scheme="http://www.fool.com/cusips" label="MSFT"/> |
<generator>Weblog Editor 2.0</generator> | <generator>Weblog Editor 2.0</generator> |
<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> |
<category domain="http://www.fool.com/cusips">MSFT</category> | <category scheme="http://www.fool.com/cusips" label="MSFT" /> |
<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> | </feed> |
Examples
...