Modifying a RSS file
for use in FeedSync
The original RSS feed used in this example can be found here Original To Do List. To support FeedSync, the publisher of this RSS feed first ran a simple script over it to add the FeedSync namespace definition to the root element:
<rss version="2.0" xmlns:sx="http://feedsync.org/2007/feedsync">
Then, each RSS item element is populated with a child <sx:sync> element, which specifies a globally unique ID, count of updates, an optional indication if the item was deleted and an optional indication if the item should preserve conflicts. Also, each <sx:sync> element is populated with at least one child <sx:history> element, which specifies when the last change was made and/or by whom.
<sx:sync id="101" updates="1"
deleted="false" noconflict="false">
<sx:history
sequence="1"
when="2007-01-19T00:14:37Z" by="fsRSSConvert.js"/>
</sx:sync>
The resulting file, Version 1 which represents “Version 1” of
the to do list, is the common starting point for both endpoints in this
example. Each RSS item in this file now
has a child sync element and unique ID.
This is the minimum requirement for any RSS feed to be used in FeedSync, and
can easily be accomplished using a simple script.