From: "NAKAMURA, Hiroshi" Date: 2001-09-18T13:28:22+09:00 Subject: [ruby-talk:21304] Re: Ruby objects <-> XML: anyone working on this? Hi Kent, I'm very sorry for misunderstanding. > From: NAKAMURA, Hiroshi [mailto:nahi@keynauts.com] > Sent: Tuesday, September 18, 2001 10:28 AM > > Seeing as point 2 is the show-stopper (for me), I'll elaborate. > > > > > > dad = Person.new > > son = Person.new > > son.father = dad > > people = [ dad, son ] > > aString = SOAP::Marshal.marshal( people ) > > xdad, xson = SOAP::Marshal.unmarshal( aString ) > > > > > > Then > > a) xdad.id != xson.father.id > > Try; > a = []; p a.id > b = Marshal.load( Marshal.dump( a )); p b.id > Original object and unmarshalled object is not the same thing > in Ruby. I think it reasonable. Definitely xdad and xson.father should be the same object. xdad.id must be equal to xson.father.id. It is based on SOAP4R's restriction regarding multi-ref serialization. Sorry, // NaHi