You can use JAXB objects as request entity parameters
and response entities with JAX-RS applications. Instead of transforming
XML to and from native Java types,
you can take advantage of using JAXB objects.
Using JAXB for XML data binding
Java Architecture for XML Binding
(JAXB) is a Java technology that provides an
easy and convenient way to map Java classes
and XML schema for simplified web services development. JAXB provides
the xjc schema compiler, the schemagen schema generator and a runtime
framework to support marshalling and unmarshalling of XML documents
to and from Java objects.