Migration 1.0 to 1.1

From cbwiki.net
Revision as of 08:15, 15 June 2007 by Steven Bagshaw-BIS (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The RSS-CB specifications were advanced to version 1.1 in June 2007. Although the structure of RSS-CB feeds is changed to a substantial degree, migrating from one to the other should not prove too difficult. Please follow these steps to migrate from RSS-CB 1.0 to 1.1. (If you have no RSS-CB 1.0 feeds, you can ignore this page.)

  • Step 1: Change all <cb:application> elements to one of the <cb:event>, <cb:news> etc. elements, depending on the value of <cb:application>.
Before:
<cb:application>speech</cb:application>
After:
<cb:speech>
  • Step 2: Put the closing tag for the element in step 1 after all of the RSS-CB elements.
Before:
<cb:application>speech</cb:application>
<cb:simpleTitle>title</cb:simpleTitle>
<cb:occurrenceDate>2007-01-02T19:20:00+05:00</cb:occurrenceDate>
After:
<cb:speech>
  <cb:simpleTitle>title</cb:simpleTitle>
  <cb:occurrenceDate>2007-01-02T19:20:00+05:00</cb:occurrenceDate>
</cb:speech>
  • Step 3: Ensure that any <dc> or <dcterms> elements are outside the cb application element.
Yes!
<item rdf:about="http://yoursite.org/events/20061219a.html">
  <title>Event announcement: International conference on financial stability</title>
  <link>http://yoursite.org/events/20061219a.html</link>
  <description>...snipped...</description>
  <dc:date>2006-12-19T19:20:00</dc:date>
  <dcterms:audience>Financial supervisors</dcterms:audience>
  <cb:event>
    <cb:simpleTitle>International conference on financial stability</cb:simpleTitle>
    ...
  </cb:event>
</item>
No!
<item rdf:about="http://yoursite.org/events/20061219a.html">
  <title>Event announcement: International conference on financial stability</title>
  <link>http://yoursite.org/events/20061219a.html</link>
  <description>...snipped...</description>  
  <cb:event>
    <cb:simpleTitle>International conference on financial stability</cb:simpleTitle>
    <dc:date>2006-12-19T19:20:00</dc:date>
    <dcterms:audience>Financial supervisors</dcterms:audience>
    ...
  </cb:event>
</item>