On Oct 12, 2005, at 3:53 PM, Radu Preotiuc-Pietro wrote:

I think the definitive answer is:

- generated Java classes are serializable and the serialization format
is XML, so that when you deserialize it you can go to parent, to DOM
etc, and the behavior will be exactly the same as on the original
instance (except for classoading-related things, of course)

I had some problems serializing generated java classes. IIRC I got a DOM node from an xmlbeans object and later parsed it back into xmlbeans. The resulting XmlObject subclass instances were not serializable; they appeared to retain references to the non-serializable xmlbeans DOM nodes. Is this expected to work?

thanks
david jencks

- the DOM implementation is currently not serializable, I don't really
know what the reason for that is.

Radu

-----Original Message-----
From: Jason Vasquez [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 11, 2005 11:27 AM
To: user@xmlbeans.apache.org
Subject: Serialization (again)


Hi,

I see a few posts on the list concerning XMLBeans Serialization, but
nothing seems to answer the question definitively:  Is Serialization
officially supported?

My particular case is this:  I have my own Serializable classes which
contain member variables that are DOM Objects obtained from XMLBeans
objects. The Document implementation from XMLBeans is not serializable,

so I am unable to serialize my class.  My thought at this point is that
I
will need to muck about with writeObject/readObject on my own class to
serialize the DOM Document to plain XML Strings and back.

(This is all with 2.0.0, by the way)

Any ideas?
-jason

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to