I do make a request to a Website this gives me a XML Response with the variables, totalresults, itemsperPage and pos: In this example is: totalresults=totalItemCount, and pos=currentIndex:
This interface does gives only 200 entries once a day the totalresults could be mor than this 200 and thats the point how to loop the next day from the right position, itemsperPage is 10, for one request it gives a response with 10 entries in the File, if the totalItemCount is 425 in this Case the last File will have 5 entries.
the output on the console should be:
for example: totalItemCount is= 425
this should be the loop
"http:/query/currentIndex1" this will give back, 10 Entries.
"http:/query/currentIndex2" this will give back the next 10 Entries
..........
"http:/query/currentIndex20" this will give back the next 10 Entries" (because 20x10 makes)
if run the programm again
"http:/query/currentIndex21" this will give back the next 10 Entries (210 Entries)
...........
"http:/query/currentIndex42" this will give back the next 10 Entries ( because 42 x 10 makes 420).
May it should, there in the code another variable for the 200=Entries ?
I cann speak and write German if there is someone witch cann German this will be better.
Hi,
I am an experienced Java developer. I have over 10 years Java development experience. I understand from the requirements that you are interested in developing some kind of paging reader for XML. I am happy to work with you to develop a Java app that will read the XML according to your requirements. Please feel free to contact me.
I am looking forwards to hearing from you.
Best Regards,
Avi