tags:

views:

16

answers:

1

Hi,

I have an NSXmlDocument object which is constructed from an XML file. How can i serialize

the said document. I have seen NSPropertyListSerialization class, but could not use as it is

not plist file.

+2  A: 

Call -XMLData on it; you'll receive an instance of NSData which can subsequently be written to disk.

Also; you could use -XMLDataWithOptions, for much the same result.

Williham Totland