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
readFrommethods which accept eitherStringorURLparameter. - Get the
RSSChannelwhich contains channel-related fields along with the list ofRSSItems. Both classes implementParcelableinterface, 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:artemgapchenko@yandex.ru)