So I\'m trying to marshal a generic list of objects, but i want each list to have a specific XmlRootElement(name..). The way I\'m doing it, I know it\'s not really possible
You can wrap the instance of EntityList in a JAXBElement to provide a root element name at runtime.
Example