Thanks for the appreciation! If you use Gson in a project that we can
list on our site, drop us a note.
In Gson 1.4, we plan to open up the API to allow returning a Json
Parse Tree from an object. You will be then be able to write it out as
XML.
In Gson 1.3, we already provide a fromJson method that takes a parse
tree of JsonElements and converts it to an object. If you can somehow
parse an XML document to that tree, you can use it to deserialize XML.
The main problem there is that it will only work for a subset of XML
that maps to a tree. General XML allows arbitrary graph
representations, and those will not work nicely with Gson.
Inder