Hi,
The following assumes regular CGI usage. If you're using Java RPC,
you'll use a different technique.
First, you're going to parse the source document via
XMParser.parse().
Document docQuestionnaire = XMLParser.parse(xmlData);
You may have more machinery around the above call whose purpose is to
put an XML string into a variable. See the examples in the GWT docs.
I don't address modifying the source document in this post.
To send the result, simply use the modified .parse() result:
RequestBuilder rb = new RequestBuilder(RequestBuilder.POST,
URL.encode(theHost));
rb.setRequestData(docQuestionnaire.toString());
rb.setHeader("Content-Length",
String.valueOf(docQuestionnaire.toString().length()));
Again, you will have more machinery around the above code.
-30-
On Aug 27, 8:26 am, max_gtbd <[EMAIL PROTECTED]> wrote:
> Hi,
> I'm writing a web app to modify an xml document.
> the document is first loaded from a server.
> then the modified document has to be sent back to the server.
>
> I can't find a way to send the document back.
>
> thx if you can help.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---