Edit an xml file and save it
Can anybody tell me how to edit the data in the xml file and save it. I am using it for iPad.
iPad 2, Mac OS X (10.6.8)
Want to highlight a helpful answer? Upvote!
Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >
Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >
Can anybody tell me how to edit the data in the xml file and save it. I am using it for iPad.
iPad 2, Mac OS X (10.6.8)
Use a dictionary (for my mind i prefere using plist it's a xml file but then it's easier to use it)
Property list is same as the XML file. So try to update (write data) in your plist file. And retrieve it. May helpful. Try the link...............
xml or plist , just the extension differs.(Both are Extended Markup Language).
If u want to edit it manually - u can use property list editor (which is in XCode )
or u can open with dashcode , which can be edited easily.
If ur question was to edit dynamically.
U can do that with write to file functionality.
For example u may check this.
http://www.iphonedevsdk.com/forum/iphone-sdk-development/1613-read-write-create- data-files.html
Edit an xml file and save it