1

I want to make an iphone application for a blog. Which is the best method to parse the RSS feeds from the blog.

Nikhil Vishnu
  • 871
  • 8
  • 18

3 Answers3

6

Just use this MWFeedParser

https://github.com/mwaterfall/MWFeedParser

In the RootViewController files, under (void)viewDidLoad edit the line, and put your full URL

NSURL *feedURL = [NSURL URLWithString:http://www.YOUR_URL_HERE.com/whateverRSS"];

Another good parser is from Ray Wenderlich http://www.raywenderlich.com/2636/how-to-make-a-simple-rss-reader-iphone-app-tutorial

I actually combined the 2 since I liked the parsing of MWFeedParser but Ray's went to an UIWebView instead of Safari, this link describes how to combine MWFeedParser in-app web browser INSTEAD of safari

Community
  • 1
  • 1
SnowboardBruin
  • 3,645
  • 8
  • 36
  • 59
0

You should look into NSXMLParser. I use this in several of my apps, and I am pleased with the performance. JSON is also a good library to use.

WrightsCS
  • 50,551
  • 22
  • 134
  • 186
0

I would use XML Translator from CWFoundation project, but then I made it. The project has a RSS parser (for Apple news feed) as a sample app. I honestly believe that there is no easier way to parse XML into proper domain objects for Objective-C, at least none that I have the last decade.

PeyloW
  • 36,742
  • 12
  • 80
  • 99