You can use Castor for convenient conversion of XML to Java and back.
With Castor, you can
- Ease conversion: A simple Marshaller and Unmarshaller makes conversion of XML to Java and back extremely easy.
- Mapping: A mapping file can be created to restrict the amount of data to be converted from XML to Java and back.