Bug in KXML2 WBXML parser?

Jose Manuel Cantera Fonseca <[email protected]> Thu, 13 Feb 2003 11:35:24 +0100
Newsgroups gmane.comp.java.enhydra.kxml
Organization Telefónica I+D (Boecillo)
Message-ID <[email protected]>
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 (text/x-vcard, 398 B)
begin:vcard 
n:Cantera Fonseca;José Manuel
tel;work:983367743
x-mozilla-html:FALSE
url:http://www.tid.es
org:Telefónica I+D;Field Force Automation (InstantFORCE) <br /> Plataforma DG1000
version:2.1
email;internet:[email protected]
title:R & D Engineer
adr;quoted-printable:;;Parque Tecnol=F3gico de Boecillo=0D=0AParcelas 119-120;Boecillo;Valladolid;47000;Spain
fn:José Manuel Cantera Fonseca
end:vcard