On Fri, Aug 12, 2011 at 9:31 AM, Wolfgang Laun <wolfgang.laun_at_gmail.com>wrote:
> There is no way for two separate lists to maintain the ordering of elements
> in the XML document. The XML Schema says: here comes a mixture of this and
> that, and that's what JAXB is bound to deliver.
>
> You can easily write a generic method for extracting a List<This> or a
> List<That> from a List<JAXBElement>.
>
> -W
>
>
What if I don't care about the order?
I don't understand what you are talking about List<JAXBElement/>? Everything
comes back as a plain Object and I have to test for instanceof to separate
out the types?