PDA

View Full Version : XML writer in SDK?




jsnuff1
Dec 10, 2008, 04:06 PM
Does the iPhone SDK not have an native XML writer/editor?

I was looking at NSXMLDocument, but this seems to only be part of the Mac OSX SDK and is not found in the iPhone SDK. The only thing that seems to be in the iPhone SDK is just the NSXMLParser

What are you guys using to write/edit XML Documents?



chbeer
Dec 11, 2008, 12:12 AM
On the iPhone NSXMLDocument and it's companion classes are left out. The reason is the rather small memory it has.

You'll have to build your XML yourself by appending strings or writing to a stream or such things.

jsnuff1
Dec 12, 2008, 02:14 PM
No one has any other suggestions for building XML files?

As for appending strings and building one that way I tried it, but havent figured out how to represent quotation mark inside strings (since the whole NSString is inside quotation marks, any quotation marks inside that string screws it up and there are a lots of quotations inside XML files)

MNDMatt
Dec 16, 2008, 08:54 PM
I found this last night while working on the same problem...

http://blog.atrexis.com/index.cfm/2008/7/28/iPhone--Parse-XML-to-custom-objects

I've had trouble with it, however, and haven't gotten it to work.