logo       

Bug in KXML2 WBXML parser?: msg#00000

java.enhydra.kxml

Subject: Bug in KXML2 WBXML parser?

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

Attachment: jmcf.vcf
Description: Tarjeta para Jose Manuel Cantera Fonseca

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise