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?