users@jaxb.java.net

Re: Creating copy of JAXB Java object content tree?

From: Ganga Sah <ganga_sah_at_yahoo.com>
Date: Mon, 19 May 2003 08:50:40 -0700

Thanks to Roberts for his suggestion as I could do
this thru JAXB verdor extension.
-ganga
--- Robert Lowe <rmlowe_at_rmlowe.com> wrote:
> You could use the RI extension to generate
> Serializable classes, as
> described here:
>
>
http://java.sun.com/webservices/docs/1.1/jaxb-1.0/vendor.html
>
> You could then serialize your content objects to a
> memory buffer, and then
> deserialize from the same buffer. This effectively
> creates a deep copy.
>
> - Rob
>
>
> ----- Original Message -----
> From: "Ganga Sah" <ganga_sah_at_yahoo.com>
> To: <JAXB-INTEREST_at_JAVA.SUN.COM>
> Sent: Thursday, May 15, 2003 11:50 PM
> Subject: Creating copy of JAXB Java object content
> tree?
>
>
> > I have a XML instance de-serialized as Java
> > Object(content tree) and I want to create another
> > copy(clone) of this object. I am finding it hard
> to do
> > so in a generic way "without" traversing the
> content
> > tree and copying each object in turn into a empty
> > instance of the object type using
> create<ObjectType>
> > method of JAXB generated ObjectFactory?
> > Can any one suggest an easy way to create
> duplicate
> > copy of content tree object?
> >
> > thanks,
> > ganga
> >
> > __________________________________
> > Do you Yahoo!?
> > The New Yahoo! Search - Faster. Easier. Bingo.
> > http://search.yahoo.com


__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com