Hello,
I'm trying to parse an WBXML document with KXML parser and the parser
enters in an infinite loop. The document is generated with
WBXMLSerializer of KXML2. Here is the code that works with normal KXMLParser
with plain XML documents.
boolean stopParsing = false;
while (!stopParsing) {
int pe = parser.next();
if (pe == XmlPullParser.START_TAG) {
listener.elementFound(parser.getName(),
toMapAttrs(parser));
}
else if (pe == XmlPullParser.END_TAG) {
listener.endElementFound(parser.getName());
} else if (pe == XmlPullParser.END_DOCUMENT)
{
stopParsing = true;
}
}
¿Do you know any bug in the parser?
Thanks in advance
jmcf.vcf
Description: Tarjeta para Jose Manuel Cantera Fonseca
|