I have a XML format that I want to marshal using JAXB and it looks a bit odd to me. Here is the XML
<root>
<parent>
<child>1</child>
<child>2</child>
<child>10</child>
</parent>
</root>
I want to get the List of child back. Usually if the parent has multiples different child, I would make parent a class, and use @XmlElement to refer to parent from root, but in this case parent only have 1 child, and it repeat multiple times, so it is a bit odd to me. The XML format can be changed.
You could do the following leveraging
@XmlElementWrapper:For More Information