users@jaxb.java.net

Re: Default Binding

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Mon, 14 Aug 2006 10:48:27 -0700

jdemic wrote:
> I'm attempting to use JAXB to bind objects in an existing framework. I'd
> prefer not to markup the framework's source with @XmlRootElement annotations
> to get this work. Is there any way to tell JAXBContext to do a default
> binding w/o setting @XmlRootElement?

To some extent. You can can use the version of the unmarshal method that
takes the expected type. On marshalling, you can wrap your object into
JAXBElement.

-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com