Do you know JAX-B? I think is more or less the Gson idea but in XML... Having said that, I don't recommend using it, based in my previous experience in other project (JAX-B was the worst nightmare of the developers xD)