users@jaxb.java.net

Re: Creation of JAXBElement from Java objects

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Mon, 14 May 2007 17:16:52 -0700

Peizhao Hu wrote:
> Hi everyone,
>
> since no one reply my question early on, I would like to make my
> question for specific.
> I have a java object of type S, how can I create an JAXBElement object
> like JAXBElement<? extends T>, that is S extends T.
> please help!!!

new JAXBElement(new QName("root"), S.class, value );

-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com