Kohsuke,
Thanks for the quick response. Do you happen to have a pointer to good
documentation for using JAXBElement directly? my experience is limited to
using the annotations approach.
Cheers and thanks,
-john
Kohsuke Kawaguchi-2 wrote:
>
> 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
>
>
--
View this message in context: http://www.nabble.com/Default-Binding-tf2104219.html#a5801832
Sent from the java.net - jaxb users forum at Nabble.com.