users@jaxb.java.net

RE: How do I separate the <xsd:choice/> sub elements into individual list properties?

From: Tinnefeld, Karsten <tinnefeld_at_adesso.de>
Date: Fri, 12 Aug 2011 17:25:20 +0200

As you wrap them in a choice element, they come out any order, i.e., the order you use in your xml instance. If you wish to extract one type, simply loop over the list and pick out those that match your requirement. If you need to manipulate them, take the whole list and alter them in place. They don't come back as Object, but wrapped in JAXB wrappers, which implement JAXBElement.

Karsten