Hi Manolo, Actually I think the problem may be due to the HTML form response rather than the XML parser.
Our system works by using a FormPanel with a FileUpload object to upload a zip file to a servlet. The servlet then processes this and creates an XML file detailing the zip file contents. The FormHandler - onSubmitComplete(FormSubmitCompleteEvent event) listener receives the XML string response from the servlet. However the problem is the FormSubmitCompleteEvent will only accept content that is of MIME type text/html - it returns null if you try to send back text/xml or application/xml. So I think that as it is text/html being returned by the servlet it is all being converted to lowercase as html is case-insensitive. Does anyone have any other way to submit a zip file to a servlet and return an XML string? Thanks -Stu On Jul 21, 2:31 pm, Manolo Carrasco Moñino <[email protected]> wrote: > I've used it but I didn't mind this client conversion. > > Think that gwt-xml parser delegates xml handling to the browser's native xml > processing, so the behavior can be different in different browsers, and > could be browsers converting to lowercase and not. > > So I suggest you to filter the xml document sent by the client in the server > side before validating it. > > Manolo > > On Tue, Jul 21, 2009 at 2:06 PM, Stuart_L <[email protected]> wrote: > > > Hi all, > > > I'm using the GWT XMLParser as described here: > >http://code.google.com/p/bunsenandbeaker/wiki/DevGuideXML > > > I have to use it this way as I send a response string back from a form > > submission. > > > However the parser seems to be converting all the element names to > > lowercase? This is makes it un-usable as we hoped to be able to alter > > the xml doc and then send it on again. But this means that is fails > > the XSD validation on the server side as the elements names do not > > match (case senstive). And all our server parsing methods retrieve the > > elements using the sentence case names as well! > > > Has anyone else experienced this? Have any advice, thanks. > > > -Stu --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
