Thanks for the answer! but... :'( ! May be I will have to parse the string by hand... I will try you recommendations and keep you in touch.
Thks! On 10 fév, 22:59, davidroe <[email protected]> wrote: > having recently dealt with my own problem regarding IE parsing XML, I > can offer you my sympathy but little else. my issue was caused by > particular characters in the document not being properly encoded, > causing the IE xml parser to barf. my recommendation is to strip down > the document until you have something that IE _does_ parse and work > your way back to the full document, bit by bit. > > /dave > > On Feb 10, 5:57 am, mfc_alpha <[email protected]> wrote: > > > Hello! > > I use GWT to parse response from a lighttpd server. > > The xml looks like : ( full xml athttp://pastebin.com/m63cd0ec8) > > > <?xml version="1.0" encoding="utf-8"?> > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/ > > TR/xhtml1/DTD/xhtml11.dtd"> > > <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> > > ... > > <body> > > <h2>Index of /webdav/</h2> > > <div class="list"> > > <table summary="Directory Listing" cellpadding="0" cellspacing="0"> > > <thead><tr><th class="n">Name</th><th class="m">Last Modified</th><th > > class="s">Size</th><th class="t">Type</th></tr></thead> > > <tbody> > > <tr><td class="n"><a href="../">Parent Directory</a>/</td><td > > class="m"> </td><td class="s">- </td><td > > class="t">Directory</td></tr> > > <tr><td class="n"><a href="web/">web</a>/</td><td class="m">2009- > > Feb-10 14:46:51</td><td class="s">- </td><td > > class="t">Directory</td></tr> > > </tbody> > > </table> > > </div> > > <div class="foot">lighttpd/1.4.20</div> > > </body> > > </html> > > > So I use the XMLParser.parse function to parse it. That's fine for > > Firefox and Safari but I get a DOMException for IE. > > This exception say: > > > com.google.gwt.xml.clent.impl.DOMParseException: Failed to parse: <? > > xml version="1.0" encoding="utf-8"?> > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/ > > TR/xhtml > > > Looks strange to me to failed on parsing the DOCTYPE ... > > > It's there a workaround? Any help will be appreciate! > > Thanks! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
