On 04/15/2009 10:06 AM, Soren Johnson wrote: > I have an XML file that is served to the client automatically by being > in the root folder of my war. How do I open in my GWT client code it > so that I can parse the contents? Or am I going about this wrong? > thanks... > Javascript cannot read/write client-side files [1]. There's nothing inherent in GWT that changes that behavior. Absent 3rd party tools, you'll have to deploy the XML file to your server, use RequestBuilder() to retrieve the contents, and XMLParser() to turn it into a Document instance.
[1] unless you use Flash, Gears or some other 3rd party library --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
