I am developing an application. In it, I want to create an XML file with some data. I want to save the XML file and retrieve it at some other time. Is it possible to save and retrieve an XML file on the iPhone? If so, how?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could use NSUserDefaults with some NSDictionaries or NSArrays. It’s basically the same stuff. NSUserDefaults writes some NSArrays or NSDictionary to the app folder on your device as an XML (Plist file).
The good thing is that it will be persistent during app lauches. Have a look here.