For testing purposes, I used used JAXB to generate an XML from an Object. This work fine. The code is below.
package com.mns.mnsutilities.jaxb.model; im
You can do the following:
@XmlElementWrapper(name="addresses") @XmlElement(name="address") public List<Address> getAddressesList() {