What framework I should use to grab XML from a http and parse that?
Asked
Active
Viewed 360 times
0
-
1Can't believe this question still gets asked at least once a week. – Aurum Aquila Apr 15 '11 at 10:48
-
Duplicates: [1](http://stackoverflow.com/questions/2237757/cocoa-objective-c-best-practice-to-parse-xml-document) [2](http://stackoverflow.com/questions/3729514/sending-and-receiving-xml-to-and-from-server-using-cocoa) [3](http://stackoverflow.com/questions/2964503/nsxmlparser-on-the-iphone-how-do-i-use-it-given-a-xml-file-newb-here) [4](http://stackoverflow.com/questions/3731453/parsing-xml-in-cocoa) [5](http://stackoverflow.com/questions/3731594/) [6](http://stackoverflow.com/questions/5274513/) [...](http://stackoverflow.com/search?q=%5Bcocoa%5D+xml+file+parse) – jscs Apr 15 '11 at 17:20
-
possible duplicate of [How to read in and parse an XML file on the iphone?](http://stackoverflow.com/questions/2097631/how-to-read-in-and-parse-an-xml-file-on-the-iphone) – jscs May 03 '11 at 01:42
2 Answers
1
Start here:
You can use the initWithContentsOfURL initializer to actually load the document from the HTTP source.

Tomas McGuinness
- 7,651
- 3
- 28
- 40
1
Try touchXML:
TouchXML is a lightweight replacement for Cocoa's NSXML* cluster of classes. It is based on the commonly available Open Source libxml2 library.
Here is a nice tutorial.
Source has moved a bit, can be found here

Nick Weaver
- 47,228
- 12
- 98
- 108