views:

2165

answers:

3

With Core Data, specifically on Cocoa Touch, is it possible to export and import individual objects in XML format (irrespective of the underlying store format, ideally)?

I'm asking this because I'm using Core Data to manage my object graph anyway, and I need to send and receive my objects in XML format with HTTP. So it would be convenient for me if there were special convenience functions for this kind of import/export.

+1  A: 

Sure, it is possible. You'd just have to write the code.

Core Data doesn't have any special import or export routines if that's what you're asking.

There is a section in the Core Data Programming Guide that talks about data import strategies.

Hunter
A: 

Not sure exactly what your intention is or how complex your objects are so this may be off the mark but...have you thought about making your objects conform to the NSCoding protocol? Doing so should allow you to serialize them to disk or wherever outside Core Data.

Meltemi
A: 

I have the same problem. If you find a solution please contact through this forum.Thanks

Simone