Solved

Need help to understand how RSS reader works.

Posted on 2007-11-15
6
291 Views
Last Modified: 2013-11-18
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

0
Comment
Question by:rnicholus
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
6 Comments
 
LVL 8

Expert Comment

by:Wikkard
ID: 20292947
0
 
LVL 8

Expert Comment

by:Wikkard
ID: 20292967
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.



0
 
LVL 5

Accepted Solution

by:
usarian earned 100 total points
ID: 20293001
(1.)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?

(A)
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.


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

(A)
Usually that is set by the user.  Some feeds once per day is plenty, others once every 10 minutes is good.  Consider: How often do you check for new email messages?

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

(A)  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.

Usarian
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:rnicholus
ID: 20293985
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.
0
 

Author Comment

by:rnicholus
ID: 20294007
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?

0
 
LVL 5

Assisted Solution

by:usarian
usarian earned 100 total points
ID: 20294652
>You mean that there's no universal standard to detect new content in RSS feed?

Nope.  Not even if that feature exists.
If you know any programming languages, RSS readers are really cool starter projects.  I don't know of any language that isn't capable of creating one.
All you do is download an xml file, organize text in it and display it.  If you know the URL of the XML file itself, you can download it and open it in notepad or Excel.

Alot of websites have these buttons now for specific readers instead of making the RSS feed itself available directly.. that's more difficult to work with.
0

Featured Post

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Shoutout to Emily Plummer (http://www.experts-exchange.com/members/eplummer26.html) for giving me this article! She did most of it, I just finished it up and posted it for her :)    Introduction In a previous article (http://www.experts-exchang…
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question