So what I am looking to do is to achieve this structure:
<root>
<child>value</child>
<child>value</child>
.
.
</root>
The problem is I do not know how many children are there in advances, so need a list. I have tried this but I end up with:
<root>
<child/>
<child/>
.
.
</root>
This is using JAXB.
Please help me out..
Okey so What I did was added a new annotation and setter and getter methods and it worked eg:
@XmlValue
protected String myval;