PDA

View Full Version : Regarding XML parsing




MalathiV
Dec 3, 2008, 04:26 AM
I need to Parse a localized XML file using ObjectiveC. Could somebody guide ?



jnic
Dec 3, 2008, 08:19 AM
I need to Parse a localized XML file using ObjectiveC. Could somebody guide ?

Try these:

NSXMLParser: http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSXMLParser_Class/Reference/Reference.html
SeismicXML: https://developer.apple.com/iphone/library/samplecode/SeismicXML/index.html (In particular, take a look at XMLReader.m.)
Tutorial: http://theappleblog.com/2008/08/04/tutorial-build-a-simple-rss-reader-for-iphone/

beachdog
Dec 3, 2008, 09:39 AM
I have sample code I would be willing to share, but its too much to post inline here. I find in this forum it is often the case that a question could easily be resolved by someone posting an example that is a bit more than just a snippet, and there seems to be no common means for doing this. Does anyone have suggestions along these lines?

jnic
Dec 3, 2008, 10:57 AM
I have sample code I would be willing to share, but its too much to post inline here. I find in this forum it is often the case that a question could easily be resolved by someone posting an example that is a bit more than just a snippet, and there seems to be no common means for doing this. Does anyone have suggestions along these lines?

You can attach .zip files to a post :)

Encryptic
Dec 4, 2008, 09:39 PM
I need to Parse a localized XML file using ObjectiveC. Could somebody guide ?

TouchXML was developed for use in Obj-C Environments which don't have the XML parsing libraries that make life easy.

Check it out here: http://code.google.com/p/touchcode/wiki/TouchXML