jaxb: How can I bind nested element
Posted
by user368532
on Stack Overflow
See other posts from Stack Overflow
or by user368532
Published on 2010-06-16T18:13:47Z
Indexed on
2010/06/16
18:22 UTC
Read the original article
Hit count: 171
There is my xml:
<parent>
<children>
<child>1</child>
<child>2</child>
</children>
</parent>
I want to have the following Parent class:
@XmlRootElement
Parent{
@XmlElement(name="children/child")
List<Child> children;
}
I don't want to have class for element 'children'. How should I map field children ?
© Stack Overflow or respective owner