RSS: Difference between revisions
No edit summary |
No edit summary |
||
Line 18: | Line 18: | ||
[[Category: Educational technologies]] | [[Category: Educational technologies]] | ||
==Examples== | |||
Examples taken from [http://en.wikipedia.org/wiki/RSS_%28file_format%29#Example wikipedia] | |||
===RSS 1.0=== | |||
Based on rdf: | |||
==Example== | |||
The following is an example of an RSS 1.0 file. | |||
'''''<?xml version="1.0"?>''''' | |||
<'''rdf:RDF''' | |||
xmlns:rdf="<nowiki>http://www.w3.org/1999/02/22-rdf-syntax-ns#</nowiki>" | |||
xmlns="<nowiki>http://purl.org/rss/1.0/</nowiki>"> | |||
<channel rdf:about="<nowiki>http://www.xml.com/xml/news.rss</nowiki>"> | |||
<'''title'''>XML.com</'''title'''> | |||
<'''link'''><nowiki>http://xml.com/pub</nowiki></'''link'''> | |||
<'''description'''> | |||
XML.com features a rich mix of information and services | |||
for the XML community. | |||
</'''description'''> | |||
<image rdf:resource="<nowiki>http://xml.com/universal/images/xml_tiny.gif</nowiki>" /> | |||
<'''items'''> | |||
<rdf:Seq> | |||
<rdf:li resource="<nowiki>http://xml.com/pub/2000/08/09/xslt/xslt.html</nowiki>" /> | |||
<rdf:li resource="<nowiki>http://xml.com/pub/2000/08/09/rdfdb/index.html</nowiki>" /> | |||
</rdf:Seq> | |||
</'''items'''> | |||
<textinput rdf:resource="<nowiki>http://search.xml.com</nowiki>" /> | |||
</'''channel'''> | |||
<image rdf:about="<nowiki>http://xml.com/universal/images/xml_tiny.gif</nowiki>"> | |||
<'''title'''>XML.com</'''title'''> | |||
<'''link'''><nowiki>http://www.xml.com</nowiki></'''link'''> | |||
<'''url'''><nowiki>http://xml.com/universal/images/xml_tiny.gif</nowiki></'''url'''> | |||
</'''image'''> | |||
<item rdf:about="<nowiki>http://xml.com/pub/2000/08/09/xslt/xslt.html</nowiki>"> | |||
<'''title>Processing Inclusions with XSLT</'''title'''> | |||
<'''link'''><nowiki>http://xml.com/pub/2000/08/09/xslt/xslt.html</nowiki></'''link'''> | |||
<'''description'''> | |||
Processing document inclusions with general XML tools can be | |||
problematic. This article proposes a way of preserving inclusion | |||
information through SAX-based processing. | |||
</'''description'''> | |||
</'''item'''> | |||
<item rdf:about="<nowiki>http://xml.com/pub/2000/08/09/rdfdb/index.html</nowiki>"> | |||
<title>Putting RDF to Work</title> | |||
<link><nowiki>http://xml.com/pub/2000/08/09/rdfdb/index.html</nowiki></link> | |||
<description> | |||
Tool and API support for the Resource Description Framework | |||
is slowly coming of age. Edd Dumbill takes a look at RDFDB, | |||
one of the most exciting new RDF toolkits. | |||
</description> | |||
</item> | |||
<textinput rdf:about="<nowiki>http://search.xml.com</nowiki>"> | |||
<'''title'''>Search XML.com</'''title'''> | |||
<'''description'''>Search XML.com's XML collection</'''description'''> | |||
<'''name'''>s</'''name'''> | |||
<'''link'''><nowiki>http://search.xml.com</nowiki></'''link'''> | |||
</'''textinput'''> | |||
</'''rdf:RDF'''> | |||
===RSS 2.0=== | |||
'''''<?xml version="1.0"?>''''' | |||
<'''rss''' ''version''="2.0"> | |||
<'''channel'''> | |||
<'''title'''>Liftoff News</'''title'''> | |||
<'''link'''><nowiki>http://liftoff.msfc.nasa.gov/</nowiki></'''link'''> | |||
<'''description'''>Liftoff to Space Exploration.</'''description'''> | |||
<'''language'''>en-us</'''language'''> | |||
<'''pubDate'''>Tue, 10 Jun 2003 04:00:00 GMT</'''pubDate'''> | |||
<'''lastBuildDate'''>Tue, 10 Jun 2003 09:41:01 GMT</'''lastBuildDate'''> | |||
<'''docs'''><nowiki>http://blogs.law.harvard.edu/tech/rss</nowiki></'''docs'''> | |||
<'''generator'''>Weblog Editor 2.0</'''generator'''> | |||
<'''managingEditor'''>editor@example.com</'''managingEditor'''> | |||
<'''webMaster'''>webmaster@example.com</'''webMaster'''> | |||
<'''item'''> | |||
<'''title'''>Star City</'''title'''> | |||
<'''link'''><nowiki>http://liftoff.msfc.nasa.gov/news/2003/news-starcity.asp</nowiki></'''link'''> | |||
<'''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 Star City.</'''description'''> | |||
<'''pubDate'''>Tue, 03 Jun 2003 09:39:21 GMT</'''pubDate'''> | |||
<'''guid'''><nowiki>http://liftoff.msfc.nasa.gov/2003/06/03.html#item573</nowiki></'''guid'''> | |||
</'''item'''> | |||
<'''item'''> | |||
<'''title'''>Space Exploration</'''title'''> | |||
<'''link'''><nowiki>http://liftoff.msfc.nasa.gov/</nowiki></'''link'''> | |||
<'''description'''>Sky watchers in Europe, Asia, and parts of Alaska and Canada | |||
will experience a partial eclipse of the Sun on Saturday, May 31st.</'''description'''> | |||
<'''pubDate'''>Fri, 30 May 2003 11:06:42 GMT</'''pubDate'''> | |||
<'''guid'''><nowiki>http://liftoff.msfc.nasa.gov/2003/05/30.html#item572</nowiki></'''guid'''> | |||
</'''item'''> | |||
<'''item'''> | |||
<'''title'''>The Engine That Does More</'''title'''> | |||
<'''link'''><nowiki>http://liftoff.msfc.nasa.gov/news/2003/news-VASIMR.asp</nowiki></'''link'''> | |||
<'''description'''>Before man travels to Mars, NASA hopes to design new engines | |||
that will let us fly through the Solar System more quickly. The proposed | |||
VASIMR engine would do that.</'''description'''> | |||
<'''pubDate'''>Tue, 27 May 2003 08:37:32 GMT</'''pubDate'''> | |||
<'''guid'''><nowiki>http://liftoff.msfc.nasa.gov/2003/05/27.html#item571</nowiki></'''guid'''> | |||
</'''item'''> | |||
<'''item'''> | |||
<'''title'''>Astronauts' Dirty Laundry</'''title'''> | |||
<'''link'''><nowiki>http://liftoff.msfc.nasa.gov/news/2003/news-laundry.asp</nowiki></'''link'''> | |||
<'''description'''>Compared to earlier spacecraft, the International Space | |||
Station has many luxuries, but laundry facilities are not one of them. | |||
Instead, astronauts have other options.</'''description'''> | |||
<'''pubDate'''>Tue, 20 May 2003 08:56:02 GMT</'''pubDate'''> | |||
<'''guid'''><nowiki>http://liftoff.msfc.nasa.gov/2003/05/20.html#item570</nowiki></'''guid'''> | |||
</'''item'''> | |||
</'''channel'''> | |||
</'''rss'''> | |||
==Images== | ==Images== |
Revision as of 14:13, 24 April 2006
This article or section is currently under construction
In principle, someone is working on it and there should be a better version in a not so distant future.
If you want to modify this page, please discuss it with the person working on it (see the "history")
Introduction
RSS, the acronym of really simple syndication (or in more popular words news feeds), is a standardized XML file in which websites insert structured information and is generally used to store some news. News feeds can be read by web-based or software-based news readers (also called aggregators).
Educational usage
- Check the status of student's work in the different plateforms like Wiki, Blog or Portal
- Check the news on a lot websites
Links
Similar formats
Atom is another news feeds standard. The XML syntax differs from RSS but the usages principle are the same.
Examples
Examples taken from wikipedia
RSS 1.0
Based on rdf:
Example
The following is an example of an RSS 1.0 file.
<?xml version="1.0"?> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/"> <channel rdf:about="http://www.xml.com/xml/news.rss"> <title>XML.com</title> <link>http://xml.com/pub</link> <description> XML.com features a rich mix of information and services for the XML community. </description> <image rdf:resource="http://xml.com/universal/images/xml_tiny.gif" /> <items> <rdf:Seq> <rdf:li resource="http://xml.com/pub/2000/08/09/xslt/xslt.html" /> <rdf:li resource="http://xml.com/pub/2000/08/09/rdfdb/index.html" /> </rdf:Seq> </items> <textinput rdf:resource="http://search.xml.com" /> </channel> <image rdf:about="http://xml.com/universal/images/xml_tiny.gif"> <title>XML.com</title> <link>http://www.xml.com</link> <url>http://xml.com/universal/images/xml_tiny.gif</url> </image> <item rdf:about="http://xml.com/pub/2000/08/09/xslt/xslt.html"> <title>Processing Inclusions with XSLT</title> <link>http://xml.com/pub/2000/08/09/xslt/xslt.html</link> <description> Processing document inclusions with general XML tools can be problematic. This article proposes a way of preserving inclusion information through SAX-based processing. </description> </item> <item rdf:about="http://xml.com/pub/2000/08/09/rdfdb/index.html"> <title>Putting RDF to Work</title> <link>http://xml.com/pub/2000/08/09/rdfdb/index.html</link> <description> Tool and API support for the Resource Description Framework is slowly coming of age. Edd Dumbill takes a look at RDFDB, one of the most exciting new RDF toolkits. </description> </item> <textinput rdf:about="http://search.xml.com"> <title>Search XML.com</title> <description>Search XML.com's XML collection</description> <name>s</name> <link>http://search.xml.com</link> </textinput> </rdf:RDF>
RSS 2.0
<?xml version="1.0"?> <rss version="2.0"> <channel> <title>Liftoff News</title> <link>http://liftoff.msfc.nasa.gov/</link> <description>Liftoff to Space Exploration.</description> <language>en-us</language> <pubDate>Tue, 10 Jun 2003 04:00:00 GMT</pubDate> <lastBuildDate>Tue, 10 Jun 2003 09:41:01 GMT</lastBuildDate> <docs>http://blogs.law.harvard.edu/tech/rss</docs> <generator>Weblog Editor 2.0</generator> <managingEditor>editor@example.com</managingEditor> <webMaster>webmaster@example.com</webMaster> <item> <title>Star City</title> <link>http://liftoff.msfc.nasa.gov/news/2003/news-starcity.asp</link> <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 Star City.</description> <pubDate>Tue, 03 Jun 2003 09:39:21 GMT</pubDate> <guid>http://liftoff.msfc.nasa.gov/2003/06/03.html#item573</guid> </item> <item> <title>Space Exploration</title> <link>http://liftoff.msfc.nasa.gov/</link> <description>Sky watchers in Europe, Asia, and parts of Alaska and Canada will experience a partial eclipse of the Sun on Saturday, May 31st.</description> <pubDate>Fri, 30 May 2003 11:06:42 GMT</pubDate> <guid>http://liftoff.msfc.nasa.gov/2003/05/30.html#item572</guid> </item> <item> <title>The Engine That Does More</title> <link>http://liftoff.msfc.nasa.gov/news/2003/news-VASIMR.asp</link> <description>Before man travels to Mars, NASA hopes to design new engines that will let us fly through the Solar System more quickly. The proposed VASIMR engine would do that.</description> <pubDate>Tue, 27 May 2003 08:37:32 GMT</pubDate> <guid>http://liftoff.msfc.nasa.gov/2003/05/27.html#item571</guid> </item> <item> <title>Astronauts' Dirty Laundry</title> <link>http://liftoff.msfc.nasa.gov/news/2003/news-laundry.asp</link> <description>Compared to earlier spacecraft, the International Space Station has many luxuries, but laundry facilities are not one of them. Instead, astronauts have other options.</description> <pubDate>Tue, 20 May 2003 08:56:02 GMT</pubDate> <guid>http://liftoff.msfc.nasa.gov/2003/05/20.html#item570</guid> </item> </channel> </rss>
Images
For all news feed standards, there is a unique official image: