One of the easiest apps to write is one that simply pulls data from the web, thanks to how Apple set up their frameworks. In this post I’m going to walk you through fetching and parsing an XML file from the web in the iPhone SDK. What we want to make is something like this:
NSURL → Parser.m → NSDictionary
Let’s start off with an example URL. For this blog post, I’m going to create an app that searches for gas stations near a zip code. I’ll be using Yahoo’s
Local Search API, a very handy little framework that spits back local business results when given a zip code (or GPS coordinates,

).
(more…)