• Post Reply Bookmark Topic Watch Topic
  • New Topic

Reading from a RSS feed using a Scanner object  RSS feed

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey guys, I am a bit stumped here on this project I am doing. I pretty much have to create a RSS reader.

I have to use the Scanner class to read from each line till there is no more information left, looking for an spefiic tag and then store that information till the ending closing tag.

What I have so far is



I have to start storing information whenever there is a <item> tag, and I am not sure how I will go about doing that. Please if someone can help me on how I can get started, I would be very grateful.
 
author & internet detective
Marshal
Posts: 37518
554
Eclipse IDE Java VI Editor
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would read in all the XML and then use an XML parser like SAX or DOM to parse it for the relevant tags/attributes. There's probably an open source RSS feed parser more specifically even.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!