Re: MIDP2: XmlPullParser.next() hangs
Stefan Haustein <[email protected]> Mon, 05 Apr 2004 18:05:29 +0200
| Newsgroups | gmane.comp.java.enhydra.kxml |
|---|---|
| Message-ID | <[email protected]> |
Hi, the given information is not sufficient to reproduce the problem. Is it possible to read data from the source stream without parsing? If the stream is dumped to the display, does the data look correct? Best regards, Stefan [email protected] wrote: > Hi, > > In MIDP 2.0 when I create a parser in the following way: > > -------- > XmlPullParserFactory factory = XmlPullParserFactory.newInstance("org.kxml2.io.KXmlParser", this.getClass()); > factory.setNamespaceAware(true); > parser = factory.newPullParser(); > -------- > > the following method call works fine: > > -------- > int eventType = parser.getEventType(); > -------- > > > but the following hangs: > > -------- > eventType = parser.next(); > -------- > > I can repeat the error on several J2ME (MIDP2) devices (SonyEricsson P900, NOKIA 6600). The application runs just fine in SUN's wireless toolkit. The problem might be the encoding type since the emulator hangs at the same point as the application on the phone when I specify another encodingtype than UTF-8. > > Any pointer would be very welcome! > > Cheers, > Berco > > _______________________________________________ > Kxml mailing list > [email protected] > http://www.enhydra.org/mailman/listinfo.cgi/kxml