PDA

View Full Version : Get data using XML and PHP




Sergio10
Apr 25, 2009, 12:10 PM
Hi,

I need to get data via PHP which creates XML file.
According to this link: http://www.brunokruse.com/?p=481 I suggest to get XML data as resuilt of PHP script
The workflow is next:


iPhone POSTING a request to the WebServer using HTTP
Web Server connecting to the MySQL database
Web Server returning data to the iPhone (XML, plain text)
iPhone processing the data


How to get XML and process on IPhone?



kainjow
Apr 25, 2009, 12:29 PM
Look at NSURLConnection and NSXMLParser.

jjgraz
Apr 25, 2009, 03:43 PM
Parsing resource:

http://www.iphonesdkarticles.com/2008/11/parsing-xml-files.html