My problem is that I have to parse HTML
data like
84 101 <br>some text<br><table border='1'>Here comes a table definition</table>
and an XmlPullParserException
is thrown on the following:
while (eventType != XmlPullParser.END_DOCUMENT) {
if (eventType == XmlPullParser.START_TAG) {
// do something
} else if (eventType == XmlPullParser.END_TAG) {
// do something else
}
eventType = xpp.next(); // the XmlPullParserException is thrown here, on method next()
}
And the very interesting and strange part is this: the exception is thrown only on a Nexus S (OS version 4.0.4), on devices with lower OS version, this method works well.
The error message is the following:
org.xmlpull.v1.XmlPullParserException: Unexpected token (position:TEXT 84 101 @1:8 in java.io.StringReader@414e3248)
Can anyone explain me why is this happening only on ICS? Thanks.