users@jaxb.java.net

Re: Marshalling a content sub-tree

From: Luca Buraggi <lburaggi_at_MATE.IT>
Date: Fri, 07 Mar 2003 03:21:15 -0700

On Thu, 6 Mar 2003 11:14:23 -0800, Kohsuke Kawaguchi
>An RI-specific solution is for us to provide a generic "element wrapper",
>which you can use like this:
>
>Object myJaxbObject = ....;
>
>if( myJaxbObject instanceof javax.xml.bind.Element )
> marshaller.marshal(myJaxbObject);
>else {
> ElementWrapper ew = new ElementWrapper("uri","local",myJaxbObject);
> marshaller.marshal(ew);
>}
>
>You still need to give it the element name, though. Does this solve your
>problem?
>

It would be perfect ! (the other possible solutions I am devising are much more complex and tricky !)

Is the ElementWrapper class already available, and where ?
If not, can you estimate a release date ?

thank you


Luca Buraggi