Link to home
Start Free TrialLog in
Avatar of rnicholus
rnicholus

asked on

Need help to understand how RSS reader works.

I'm new at RSS. I need help to understand how RSS (and RSS reader) works.

Basically I have a JAVA program that runs every 5 minutes and creates an RSS XML file by grabbing data from database and put it into the file.

The RSS XML file looks like what I have in the code snippet:

(1.)
My first question is:
How does an RSS reader work? How does it detect new item from an RSS feed? Does it detect new item based on uniqueID, guid element, or something else?

(2.)
How often does an RSS reader will look for update?

(3.) When generating the RSS feed, it is possible for my RSS feed to have this case below:

Let say at minute 0, there's one item.
item with ID 0 and description element "lalalala"

then at minute 1, there's one more item.
item with ID 1 and description element "lililili"
so now there are two items listed in the file.

then at minute 2, the description element for ID 0 changed to "lolololo"
will RSS reader detect this?

<?xml version="1.0" encoding="ISO-8859-1"?>
<rss version="2.0">
<channel>
<title>Hello World</title>	
<link>.....[this channel ink].....</link>	
<description>.....[description about this channel].....</description>	
.....
<item uniqueID="5623078">
<title>item lalala</title>
<link>.....[link to this data].....</link>	
<description>.....[description about this data].....</description>
<guid isPermaLink="false">5623078</guid>		
<pubDate>Thu, 15 Nov 2007 09:13:42 PST</pubDate>
</item>
.....
......
</channel>
</rss>

Open in new window

Avatar of Wikkard
Wikkard
Flag of Australia image

The RSS reader will download the latest xml file and update its local database with the information in it. And depending on how you have subscribed to the feed it will download the content.
How often it loads the xml file will depend on the different readers.



ASKER CERTIFIED SOLUTION
Avatar of usarian
usarian
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rnicholus
rnicholus

ASKER

Wikkard,

Thanks for the link. I've seen them before.

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
The RSS reader will download the latest xml file and update its local database with the information in it. And depending on how you have subscribed to the feed it will download the content.
How often it loads the xml file will depend on the different readers.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
So are you saying that any change in the RSS feed will be detected by the RSS reader eventhough it's not a new item? Let say the description element of an old item has changed.
usarian,
>>>>>>>>>>>>>>>>>>>>>>>>>>
Put simply, RSS readers discard the current feed and pulla fresh copy.  They do not universally detect new content.  If you have one that does, it's buffering the old version and comparing it at every refresh.
>>>>>>>>>>>>>>>>>>>>>>>>>>
Why do you mean that they do not detect new content? Could you please explain more on this?

>>>>>>>>>>>>>>>>>>>>>>>>>>
An RSS read may or may not detect the change.  It is a feature that a developer can choose to create or not choose to create.
>>>>>>>>>>>>>>>>>>>>>>>>>>
You mean that there's no universal standard to detect new content in RSS feed?

SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial