Simple task, I need to produce this XML:
<collection>
<name>bill</name>
<name>monica</name>
<collection>
instead of this (see following example: 19.6. Arrays and Collections of JAXB Objects):
<collection>
<customer><name>bill</name></customer>
<customer><name>monica</name></customer>
<collection>
Simple collection with strings. So the question is how to remove surrounding customer element? How can I do this with RESTeasy and JAXB?
On the
Customerclass map the name property with the@XmlValueannotation:For More Information