boom
boom

Reputation: 6166

serializing an NSXMLDocument object

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.

Upvotes: 0

Views: 209

Answers (1)

Williham Totland
Williham Totland

Reputation: 29029

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.

Upvotes: 2

Related Questions