Re: [android-developers] SAXParser invalid token exception because of '&' inside attribute value

2010-01-02 Thread Frank Weiss
There have been a few similar questions. The basic issue is that SAX parsers requires valid XML or XHTML as input. If you have control (or can influence the authors of) the service, make the output valid, which as you well know, means that <, >, ", ', & need to be escaped. In PHP, this is easily do

[android-developers] SAXParser invalid token exception because of '&' inside attribute value

2010-01-02 Thread tlegras
Happy new years :) I am using SAXParser to parse an html page (any better solution?) and have this exception: W/System.err( 1358): org.apache.harmony.xml.ExpatParser $ParseException: At line 1, column 59: not well-formed (invalid token) I have reduced the page to this: