XML serialization and deserialization

2008-07-24 Thread Oleg Krupnov
Hi, I want to serialize and deserialize my objects to/from XML files. NOTE: My object is not a dictionary, so I am not using the plist. I have found NSXMLParser for event-driven parsing and I also found NSXMLDocument for tree-based parsing. However, I don't see anything to *serialize* my object

Re: XML serialization and deserialization

2008-07-24 Thread Ken Thomases
On Jul 24, 2008, at 8:20 AM, Oleg Krupnov wrote: I want to serialize and deserialize my objects to/from XML files. Have you read this: http://developer.apple.com/documentation/Cocoa/Conceptual/Archiving/index.html ? Cheers, Ken ___ Cocoa-dev mai

Re: XML serialization and deserialization

2008-07-24 Thread Oleg Krupnov
Wow, how could I overlook this? Thanks for pointing it out! 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? BTW is this the same binary format as used i

Re: XML serialization and deserialization

2008-07-24 Thread Phil
On Fri, Jul 25, 2008 at 6:06 PM, Oleg Krupnov <[EMAIL PROTECTED]> 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

Re: XML serialization and deserialization

2008-07-25 Thread Chris Hanson
On Jul 24, 2008, at 11:16 PM, Phil wrote: On Fri, Jul 25, 2008 at 6:06 PM, Oleg Krupnov <[EMAIL PROTECTED]> 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 XM