I'm trying to get that XML:
<person>
<foo>thing</foo>
<bar>other</bar>
</person>
from that code
public class Person {
private InnerThing in;
}
public class InnerThing {
private String foo;
private String bar;
}
with JAXB java annotations.
By default, I get
<person>
<innerThing>
<foo>thing</foo>
<bar>other</bar>
</innerThing>
</person>
How can I skip the InnerThing tag with just annotations?