users@jaxb.java.net

Marshal to DOM (using Node.userData)

From: Vivian Steller <vivi_at_eecoo.de>
Date: Thu, 13 Jan 2005 21:03:44 +0100

Hello,
i've a short question about JAXB Marshalling:
 
is it possible to retrieve the original objects (meaning
the jaxb generated and unmarshalled with some xml file to
java objects) after marshalling it to DOM Nodes, maybe via
getUserData("someKey")??
 
My problem in general is, that i've a data-structure that
i want to display in a jtree (therefor dom is quite a nice
point to start writing some model-adapters) and
CONCURRENTLY in a jgraph (with anoter model, better to
adapt the original, jaxb genereated, classes). I want both
models beeing completly synchronously, thus i don't want
to generate a new model (by unmarshalling) each time one
of them changes to keep both up-to-date.
 
Sorry that i'm not familiar with those design-patterns to
solve this.. hope the problem is understandable.
 
Thanks very much in advance,
 
Vivian Steller

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net