In Java we can use tools like JAXB to do class-object mapping automatically for us, however in GWT, JAXB is not available as reflection is limited. the only way to it is :
Document messageDom = XMLParser.parse(messageXml);
Node rootNode = messageDom.getElementsByTagName("root").item(0);
String name = ((Element)fromNode).getAttribute("name");
...
Piriti looks good, but it lacks Android support, any other options?
super-sourced client package and let all your generated classes implement theSerializableinterface. If you use RequestFactory you will have client-side proxies for your server-side generated classes (to put it simply). All the above assumes you want to share a graph of objects out from an XML definition.