Re: [Simple-support] Multiple Objects in One File
Brought to you by:
niallg
|
From: Alan G. <al...@bl...> - 2008-06-03 03:39:59
|
On Jun 1, 2008, at 3:46 PM, Timo Rumland wrote: > Hello Alan, > >> It's not jumping out at me. Is there an interface where you can >> write multiple objects to one file? XStream has object streams for >> this purpose... > > the only way I know is to have a class that wraps references to the > objects you would like to serialize. > > Say we have ObjectA, ObjectB and ObjectC. Just create a class that has > references to each of that instances and serialize that class. > > I'm not really an expert on SimpleXML, but this is the only "solution" > I know. I'm sorry if this is a duplicate. I thought I'd sent a response already, but I don't see it in the archives. I'd like to use Simple XML to backup an object database. Ultimately, the number of objects would be too great for a solution that would require them all to be in memory. I'd like to see support for an solution that would allow this sort of streaming implementation. Maybe there is a way to get the same effect by writing to the same file repeatedly? Alan -- Alan Gutierrez | al...@bl... | http://blogometer.com/ | 504 717 1428 Think New Orleans | http://thinknola.com/ |