I have noticed that "pretty" xml causes fits, but Document doc = XMLParser.parse(xml); XMLParser.removeWhitespace(doc); seems to clear it up. However since removeWhitespace() is mostly a JS implementation, it is slower (in most cases) than simply doing that on the server if that is where your xml is coming from.
-jason On Apr 21, 2009, at 9:38 AM, Jeff Chimene wrote: > > On 04/20/2009 06:02 PM, codeboo...@gmail.com wrote: >> Hello everyone >> >> when I give my gwt to parse the following XML file , I get an error: >> >> <?xml version="1.0" encoding="UTF-8" ?> >> <result> >> <a href="http://cgi.ebay.com/APPLE-iPod-8gb-Blue-Nano-4th-Gen-Video- >> MP3-8-gb-Grade- >> A_W0QQitemZ170323321285QQcategoryZ73839QQcmdZViewItem">APPLE iPod 8gb >> Blue Nano 4th Gen Video MP3 8 gb Grade A</a> >> <br /> >> <a href="http://cgi.ebay.com/APPLE-IPOD-NANO-8GB-PINK-4th-Gen-VIDEO-8- >> GB-MP3-Grade- >> A_W0QQitemZ170323318228QQcategoryZ73839QQcmdZViewItem">APPLE IPOD >> NANO >> 8GB PINK 4th Gen VIDEO 8 GB MP3 Grade A</a> >> <br /> >> <a href="http://cgi.ebay.com/APPLE-iPod-8gb-Blue-Nano-4th-Gen-Video- >> MP3-8-gb-Grade- >> A_W0QQitemZ170323326712QQcategoryZ73839QQcmdZViewItem">APPLE iPod 8gb >> Blue Nano 4th Gen Video MP3 8 gb Grade A</a> >> <br /> >> </result> >> > > What happens when you remove the break tags? > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---