A-ha! In my tests I'm loading the XML file to the server with a form
submit servlet call, and sending the browser the text value.
FormPanel.SubmitCompleteEvent.getResult() doesn't accept *any* MIME
type return other than "text/html".  Using that MIME for XML with
Safari and Firefox is fine, but IE breaks it up and wraps in in all
sorts of spans and divs.  If I just cut and paste the XML into a
TextArea in my browser and parse the value of the TextArea, all is
well.

On May 25, 4:26 pm, Thad <[email protected]> wrote:
> I'm trying to adapt Jaxen for GWT and having some success: My simple
> test works in devmode with Firefox 3.6 on Linux, and with Safari 4
> when I point it at the GWT devmode on my Linux box. However I'm not
> getting past XMLParser.parse(String) in IE7.
>
> My test XML file is simple enough:
>
> <?xml version="1.0"?>
> <foo id="foobar">
>   <bar id="fb1">
>     baz
>     <cheese kind="edam">gouda</cheese>
>     baz
>     <cheese kind="gouda">cheddar</cheese>
>     baz
>   </bar>
> </foo>
>
> ButXMLParser.parse(String) throws a DOMParseException (typing from
> window on other machine): Failed to parse: <DIV class=e><SPAN
> class=b>&nbsp;</SPAN> <SPAN class-m>&lt;?</SPAN><SPAN class=pi>xml
> version="1.0" </SPAN><SPAN class=m>?&gt;</
>
> In fact, IE fails regardless of how I edit this file: If I remove <?
> xml version="1.0"?>, IE fails. If I remove the whitespace and place it
> all on one line, IE fails. If I remove occurrences of "baz" it fails.
>
> I'm running GWT 2.0.3.
>
> Any ideas?

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