Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Need help to understand how RSS reader works.

Posted on 2007-11-15
6
Medium Priority
?
296 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 300 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
Industry Leaders: 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 300 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

Tech or Treat! - Giveaway

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

Most of the sites are being standardized with W3C Web Standards. W3C provides lot of web standard services to the web. They have the web specification, process and documentation for all the web standards. You can apply HTML, CSS and Accessibility st…
Preface In the first article: A Better Website Login System (http://www.experts-exchange.com/A_2902.html) I introduced the EE Collaborative Login System and its intended purpose. In this article I will discuss some of the design consideratio…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

610 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