Have you considered using JAXB? It is the Java standard (JSR-222) for converting Java objects to/from XML. For an example of running MOXy JAXB's schema to class compiler see:
You can specify the @XmlJavaTypeAdapter annotation at the class level. This means that that any property of this particular class will automatically use the adapter. Unfortumately the adapter does not get activated when this object is the root object of the tree. In this case you need to call the adapter yourself.