Re: XML serialization and deserialization
Re: XML serialization and deserialization
- Subject: Re: XML serialization and deserialization
- From: Chris Hanson <email@hidden>
- Date: Fri, 25 Jul 2008 00:44:48 -0700
On Jul 24, 2008, at 11:16 PM, Phil wrote:
On Fri, Jul 25, 2008 at 6:06 PM, Oleg Krupnov
<email@hidden> wrote:
I have read it now and I believe the guide suggests that i archive my
object tree in a binary byte stream, not an XML. There are no
implementations of NSCoder that would output XML, are there?
NSKeyedArchiver can, see it's -setOutputFormat: method.
What NSKeyedArchiver outputs is a keyed archive structured as an XML
property list. It's not the kind of XML that Oleg is referring to.
Oleg: That's the sort of thing you'd have to implement yourself.
However, you may be able to leverage NSCoding in your implementation,
by making your XML archiver & unarchiver subclasses of NSCoder.
-- Chris
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden