Skip to main content

developerWorks >  XML  >  Forums  >  Atom and RSS forum  >  developerWorks

Retrieving the new entries of an updated feed/API    Point your RSS reader here for a feed of the latest messages in this thread


     

 
 

My developerWorks
 Welcome, Guest
Sign in or register
Permlink Replies: 1 - Pages: 1 - Last Post: Aug 25, 2009 7:53 AM Last Post By: 21tctrade Threads: [ Previous | Next ]
Ramaakrishnaa

Posts: 1
Registered: Oct 17, 2008 07:12:35 AM
Retrieving the new entries of an updated feed/API
Posted: Oct 17, 2008 07:17:32 AM
Click to report abuse...   Click to reply to this thread Reply
iam fetching several ATOM feeds using java programming language................

in that process i encountered the below problem. Can anyone of you please inform me the direction in which i have to proceed.

An illustration of the problem

At 9:00 AM
Feed entries are
X
Y

At 9:10 AM
Feed entries are
a
b
c
X
Y

newly added entries are a,b,c

i read the feed at 9:00am and noted down the entries X,Y
after 10 minutes again i read the feed
using Etag (or) id method i detected that the feed has changed....................

now how to retrieve those newly added entries of a feed at 9:10 Am?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
i thought of following the below approach

at 9:00 Am notedown the id of latest entry...............................

at 9:10 Am (it is modified) read the feed entries until you get the entry who id is equal to the entry which we stored at 9:00Am These entries which we read here are newly added ones...............

is this the right approach to get the newly added entries of a feed?
(or) is there any efficient approach ?


--rama

21tctrade

Posts: 44
Registered: Aug 13, 2009 08:13:28 AM
Re: Retrieving the new entries of an updated feed/API
Posted: Aug 25, 2009 07:53:04 AM   in response to: Ramaakrishnaa in response to: Ramaakrishnaa's post
Click to report abuse...   Click to reply to this thread Reply
Hi,this post is of 2008,hope you have solve the problem.Good luck guy!
 Tags
Help

Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular type of content or application that you're viewing.

My tags shows your tags for this particular type of content or application that you're viewing.

 

MoreLess 


Point your RSS reader here for a feed of the latest messages in all forums