users@jersey.java.net

Re: [Jersey] Re: consuming xml

From: Pavel Bucek <Pavel.Bucek_at_Sun.COM>
Date: Mon, 08 Mar 2010 12:15:33 +0100

JAXBElement is used for classes which don't have @XmlRootElement annotation.

There are various documents where you can read more about that, for example:

http://weblogs.java.net/blog/kohsuke/archive/2006/03/why_does_jaxb_p.html
https://jaxb.dev.java.net/tutorial/section_4_1-Building-and-Marshalling-an-XML-Document.html#Building%20and%20Marshalling%20an%20XML%20Document
https://jaxb.dev.java.net/tutorial/section_3_1-Unmarshalling-and-Using-the-Data.html#Unmarshalling

Regards,

Pavel

emile wrote:
> I had gone through some of the examples and they mention JAXBElement as part
> of the parameter. Please help me understand why thats included.
>