iPhone SDK:Editing XML files

2019-08-30 07:46发布

问题:

Is there any external library using which one can edit and save XML files for an iPhone application?

回答1:

A rather good way to handle XML on the iPhone is using the KissXML library hosted at http://code.google.com/p/kissxml

Using a DDXMLDocument object will allow you to get the data with - (NSData *)XMLData

You can write NSData easily to a file using writeToURL:atomically: or writeToFile:atomically: as described in the Apple documentation