As Gson will (or at least have a go at) encoding all Java classes whether they have a registered serializer/deserializer or not, something similar could be done for XML. This would depend on the ability to automatically generate a schema document for those classes.
As Gson will (or at least have a go at) encoding all Java classes whether they have a registered serializer/deserializer or not, something similar could be done for XML. This would depend on the ability to automatically generate a schema document for those classes.