Skip to main content

Blaise Doughan: Creating a Generic List Wrapper in JAXB

Creating a Generic List Wrapper in JAXB: To marshal/unmarshal a list with a JAXB (JSR-222) implementation you need to create a wrapper object to hold the list. People find this onerous having to create multiple wrapper objects for this purpose. Below I'll demonstrate that in reality you only need to create one...