View Full Version : jaxb trouble

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:

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

But it should come out as:

<foo />
<bar />

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