This sample code shows how to:
-
Use the JAXB maven plugin to generate Java classes from the XML schemas.
-
Customize JAXB Bindings to reference existing classes.
See this page for details how to use JAXB to marshal and unmarshal Java objects and XML documents:
JAXB Marshalling/Unmarshalling