0

I am trying to do following task. I know we can read XML in iOS using a parser, but can we locally update the same XML?

1) Read XML from local resource folder.
2) Update XML. Locally change value of a tag.

Thanks for your help.

Swapnil
  • 1,858
  • 2
  • 22
  • 49
  • 1
    Also be aware that the files in the resource folder get copied in the root of you app bundle and the app bundle is readonly. Thus you can't override the XML in the app bundle. You will need to save it in the document directory or if you possible in caches directory. – rckoenes Nov 04 '11 at 15:17

1 Answers1

1

If you just need to read the XML you can use the native NSXMLParser. If you need to change the XML you can use TouchXML. You can get a good tutorial on how to use TouchXML here. Also interesting discussion of the various options here.

Community
  • 1
  • 1
jbat100
  • 16,757
  • 4
  • 45
  • 70