rss-parser is an Open Source Android library which allows developers to easily parse RSS feeds which conform to the RSS 2.0. Repository also contains sample application.
The API is pretty straightforward:
- Create the instance of the
RSSReader
. - Call one of its
readFrom
methods which accept eitherString
orURL
parameter. - Get the
RSSChannel
which contains channel-related fields along with the list ofRSSItem
s. Both classes implementParcelable
interface, so you can pass them wherever you like. - Step 4 is omitted.
Here goes the code:
final RSSReader reader = new RSSReader();
final RSSChannel channel = reader.readFrom("http://feeds.feedburner.com/androidcentral?format=xml");
Artem Gapchenko (mailto:[email protected])