RSS

Aus php bar
Wechseln zu: Navigation, Suche

RSS (engl.: Really Simple Syndication) ist das klassische Newsfeed im XML Format. Semantisches Web-feature für den Datenaustausch von aktuellen, oft in regelmässigen und kurzen Intervallen, veröffentlichten Informationen.

Man sollte RSS nicht nur als News-Feed kategorisieren, man kann ebenso z.B: ein Benachrichtigungsframework oder Statusübersichten mit RSS sehr praktibel umsetzen.

Ein unabhängige Weiterentwicklung von RSS ist Atom.


Beispiel RSS 2.0 Feed

Der Aufbau eines Channels beinhaltet globale Information (title, link, description, language, webMaster des feeds) und (news-) items (rfc822 pubDate, guid (unique ident), link, description).

 <?xml version="1.0" encoding="utf-8"?>
 <rss version="2.0">
    <channel>
       <title>news</title>
       <link>http://domain.tld/rss.xml</link>
       <description>NEWS</description>
       <language>en-us</language>
       <category>contents</category>
       <image>
10          <url>http://domain.tld/feed.jpg</url>
11          <title>Logo contents</title>
12          <link>http://domain.tld/rss.xml</link>
13       </image>
14       <ttl>120</ttl>
15       <copyright>2007 by domain.tld</copyright>
16       <managingEditor>news@domain.tld</managingEditor>
17       <webMaster>webmaster@domain.tld</webMaster>
18 	  <item>
19 		  <title>the technology event</title>
20 		  <pubDate>Sun, 08 Jul 2007 11:00:00 +0100</pubDate>
21 		  <link>http://domain.tld/events.php</link>
22 		  <description>this years event provides a lot of information</description>
23 		  <author>news@domain.tld</author>
24 		  <source url="http://domain.tld/rss.xml">http://domain.tld</source>
25                   <guid>http://domain.tld/events.php#te</guid>
26           </item>
27 	  <item>
28 		  <title>the xml event</title>
29 		  <pubDate>Sat, 07 Jul 2007 11:00:00 +0100</pubDate>
30 		  <link>http://domain.tld/xmlevents.php</link>
31 		  <description>SVG Charts and a SVG specification overview</description>
32 		  <author>news@domain.tld</author>
33 		  <source url="http://domain.tld/rss.xml">http://domain.tld</source>
34                   <guid>http://domain.tld/events.php#xml</guid>
35       </item> 
36   </channel>
37 </rss>


Links

Meine Werkzeuge