• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: XML serialization and deserialization
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >XML serialization and deserialization (From: "Oleg Krupnov" <email@hidden>)
 >Re: XML serialization and deserialization (From: Ken Thomases <email@hidden>)
 >Re: XML serialization and deserialization (From: "Oleg Krupnov" <email@hidden>)
 >Re: XML serialization and deserialization (From: Phil <email@hidden>)

  • Prev by Date: Core Data Debugging
  • Next by Date: Re: Folder has limited permissions.
  • Previous by thread: Re: XML serialization and deserialization
  • Next by thread: Fancy drag & drop
  • Index(es):
    • Date
    • Thread