Sorry I can see the problems now.

On Sat, Jan 30, 2016 at 10:48 PM, Stephen Cameron <
[email protected]> wrote:

> Hi,
>
> I have a smallish problem with JAXB, the serialisation generally produces
> correct tag names but for a few types the variable name seems to be used.
> For example my XmlRootElement is as follows.
>
> @XmlRootElement()
> @XmlAccessorType(XmlAccessType.FIELD)
> @XmlType(name = "DEXFileUpload", propOrder = {
>     "clientsOrCasesOrSessions"
> })
> public class DEXFileUpload {
>
>     @XmlElements({
>         @XmlElement(name = "Clients", type = Clients.class),
>         @XmlElement(name = "Cases", type = Cases.class),
>         @XmlElement(name = "Sessions", type = Sessions.class),
>         @XmlElement(name = "SessionAssessments", type =
> SessionAssessments.class),
>         @XmlElement(name = "ClientAssessments", type =
> ClientAssessments.class),
>         @XmlElement(name = "Outlets", type = Outlets.class)
>     })
>     protected List<Object> clientsOrCasesOrSessions;
> ...
>
> But the root element in the generated XML is <dexFileUpload> not
> <DEXFileUpload>
>
> This also happens with one single element in the hierarchy too, about
> three steps deep.
>
> A bit strange.
>
>
>
>
>
  • JAXB issue Stephen Cameron
    • Re: JAXB issue Stephen Cameron

Reply via email to