You have to send the XML as a string to the server, parse the XML into a
server side Document object and then use the transformer classes. Once you
are done processing, resend the modified xml to the client and recreate the
client side Document object. The client side Document object is different
from the server side, and there is no way you can get it working with the
TransformerFactory classes.

Alternatively, there are some client side javascript libraries (outside of
GWT). These libraries can manipulate XML on the client side. But again, they
won't inter-operate with GWT's Document class, so you still have to convert
from Document -> String - > Document. Only advantage is that you save the
server round trip.

--Sri


2009/10/5 Parmeet Kohli <[email protected]>

>
> Hi,
>
>    I'm using the XMLParser class provided by GWT to create modify an
> XML document on the client side. I need to use the JAVA
> TransformerFactory and Transformer classes so that i can indent the
> XML. Is it possible to send the document (class Document) to the
> server via RPC ? (so that i can do that on the server side) I'm
> getting the following error:
>
> [ERROR] Type 'com.google.gwt.xml.client.Document' was not serializable
> and has no concrete serializable subtypes
>
> Thanks,
> Parmeet
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to