iphone , how to parse a xml file [duplicate]
Possible Duplicate:开发者_开发技巧
iPhone XMLParser help
hi.. since im new to iphone, i dont know how to parse a xml file. can anyone help me out
Take a look at NSXMLParser http://developer.apple.com/library/ios/#documentation/Cocoa/Reference/Foundation/Classes/NSXMLParser_Class/Reference/Reference.html It should help you out..
This is a sample code from Apple.. It shows the difference between All XML parsers available..
http://developer.apple.com/library/ios/#samplecode/XMLPerformance/Introduction/Intro.html
For a newbie it will be real helpfull..Feel free to use it..
It's quite old, but you should read http://www.raywenderlich.com/553/how-to-chose-the-best-xml-parser-for-your-iphone-project This can help you.
Or open Xcode's help (Xcode - Help - Documentation and API Reference) and search for SeismicXML. This is sample from iOS SDK. There are also samples like XMLBrowser, XMLPerformance, ...
精彩评论