Sample RSS-CB file 1.1

From cbwiki.net
Jump to: navigation, search

Full Sample

You can find more detailed examples of each of the specific applications here - Statistics and Research papers. Examples of individual <item> entries can also be found for Speeches, News and Events. When implementing RSS-CB feeds, it is advisable to refer to these samples, rather than the one below, as they are more detailed and descriptive.

<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://purl.org/rss/1.0/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:dcterms="http://purl.org/dc/terms/"
xmlns:cb="http://www.cbwiki.net/wiki/index.php/Specification_1.1"
xmlns:yourinstitution="http://yoursite/yournamespace/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.w3.org/1999/02/22-rdf-syntax-ns# rdf.xsd">

<channel rdf:about="http://yoursite/press.rss">
  <title>Your Institution Press Releases</title>
  <link>http://yoursite/mainRSSpage/</link>
  <description>Press releases issued by Your Institution.</description>
  <image rdf:resource="http://yoursite/your_image.gif" />
  <items>
    <rdf:Seq>
      <rdf:li rdf:resource="http://yoursite.org/news/20070201a.html" />
    </rdf:Seq>
  </items>
  <dcterms:license>http://yoursite.com/disclaimer.html</dcterms:license>
  <dc:language>en</dc:language>
  <dc:date>2006-11-30T20:24:55+05:00</dc:date>
  <dc:publisher>Your Institution</dc:publisher>
</channel>

<image rdf:about="http://yoursite/your_image.gif">
   <title>an alt tag</title>
   <url>http://yoursite/your_image.gif</url>
   <link>http://yoursite/mainRSSpage/</link>
</image>

<item rdf:about="http://yoursite.org/news/20070201a.html">
  <title>2 Jan Third Quarter Review of Annual Policy for 2006-07 on January 31, 2007</title>
  <link>http://yoursite.org/news/20070201a.html</link>
  <description>The Third Quarter Review of Annual Statement on Monetary Policy for the year 2006-07 will be available on the Reserve Bank's website at 12.00 noon (Indian Standard Time) on Wednesday, January 31, 2007.</description>
  <dc:date>2007-01-02T19:20:00+01:00</dc:date>
  <cb:news>
    <cb:simpleTitle>Third Quarter Review of Annual Policy for 2006-07 on January 31, 2007</cb:simpleTitle>
    <cb:occurrenceDate>2007-01-02T19:20:00+05:00</cb:occurrenceDate>
    <cb:keyword>India</cb:keyword>
    <cb:keyword>monetary policy</cb:keyword>
    <cb:resource>
      <cb:title>Press release in PDF format</cb:title>
      <cb:link>http://yoursite.org/news/20070201a.pdf</cb:link>
      <cb:description>PDF version of the announcement that the Third Quarter Review of Annual Statement on Monetary Policy for the year 2006-07 will be available on the Reserve Bank's website at 12.00 noon (Indian Standard Time) on Wednesday, January 31, 2007.</cb:description>
    </cb:resource>
  </cb:news>
</item>

</rdf:RDF>