PDA

View Full Version : jaxb trouble



rogier.de.groot
July 23rd, 2008, 01:18 PM
Is anyone here familiar with JAXB? I've got a collection of element in a bean that comes out wrong:

<elements>
<element xsi:type="foo" />
<element xsi:type="bar" />
</elements>

But it should come out as:

<elements>
<foo />
<bar />
</elements>

Anyone know how to make JAXB do that? All elements in the collection extends the same abstract base class ("element" in the example).

TIA