users@jaxb.java.net

Re: How to use XML objects as members of other XML objects?

From: Andrew Millin <andrewm_at_CRE.CANON.CO.UK>
Date: Thu, 08 May 2003 03:04:19 -0600

Have hit exactly the same issues - and interested in any workarounds people have. We currently create a Type object and copy the data over. ugly.

I believe this issue is reported in bug 4818589 - http://developer.java.sun.com/developer/bugParade/bugs/4818589.html

have to wait for jaxb1.0.1 for that (ie wsdp 1.2, as there arent any separate jabx incremental releases planned according to the JAXB javalive discusssion)

Andrew.

>So my questions are:
>
>1. Why can't I use TESTA object instead of TESTAType one? Nothing prevents me to create invalid output.
>
>2. If I can't use TESTA object how can I "extract" TESTAType object from TESTA one (without copying by members)? In real code, TESTA is a complex object that I receive from the server. TESTB is another complex object that I send back to the server.
>
>3. Any idea how to approach this problem if "this is not a bug, but a feature"?
>
>Thank you,
>Yakov Polonsky
>ypolonsky_at_marketswitch.com