Re: Get the RSS Feed of a site
Re: Get the RSS Feed of a site
- Subject: Re: Get the RSS Feed of a site
- From: Jens Alfke <email@hidden>
- Date: Sun, 01 Jan 2012 12:46:41 -0800
On Dec 27, 2011, at 5:38 AM, Kevin Vavelin wrote:
> I develop an application for my uni (SUPINFO), and i need to get the RSS feed of every labs they have. I don't know if i have to use NSURL or if we have something better in CocoaTouch 'cause my application is for iPhone.
* Use NSURLConnection to fetch the home page.
* Use NSXMLParser to parse the HTML (ordinarily I would say to use NSXMLDocument, but iOS doesn't have it. I am actually not sure if NSXMLParser is capable of parsing HTML that isn't perfectly formatted as XHTML. If not, you'd have to grab and build libtidy to clean it up.)
* Look at the <link> elements inside the <head> element of the <html>, as Tim said.
—Jens
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden