I agree with Thomas. XMLParser.parse(xmlString) uses the browsers xml parser which should be reasonable fast.
If you want to further process the XML document (e.g. map it to POJOs) feel free to take a look at Piriti: http://code.google.com/p/piriti/. It's a little lib I wrote to map XML / JSON to POJOs using annotations and deferred binding. - Harald On 5 Jul., 10:30, Thomas Broyer <[email protected]> wrote: > On 5 juil, 09:02, Richard Kennard <[email protected]> > wrote: > > > Hi guys, > > > A (hopefully easy) question: what is the GWT 'best practice' to take a > > server-side DOM built with org.w3c.dom.Document and pass it over RPC? > > > Clearly once on the client-side it needs to become a > > com.google.gwt.xml.client.Document, and I can achieve this by > > serializing to and from a String of XML, but is there a better way? > > Something more performant that uses some built-in DOM serialization > > capabilities? > > I doubt there would be anything more performant than XML > serialization. Particularly on the client-side, as this is done by the > browser, and not by some JavaScript code. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
