[SoapRMI] Xpp/MxP1 Comment handling
Aleksander Slominski
aslom_at_cs.indiana.edu
Thu, 12 Jun 2003 09:49:24 -0400
hi Jean
this loks like a bug - i will check it right now it is recorded in bugzilla
http://www.extreme.indiana.edu/bugzilla/show_bug.cgi?id=134
thanks,
alek
Jean-Paul FINNE wrote:
>Hi,
>
>I have a problem parsing comments containing > (gt)
>For example:
><a>
><!--
><b>
></b>
> -->
></a>
>
>When I parse it with the following code:
>XmlPullParserFactory fac = XmlPullParserFactory.newInstance("org.xmlpull.mxp1.MXParser", Thread.currentThread().getContextClassLoader().getClass().getClass() );
>XmlPullParser p = fac.newPullParser();
>p.setInput(new StringReader(xml));
>for (int type = type = p.nextToken() ; type != XmlPullParser.END_DOCUMENT; type = p.nextToken()) {
> switch (type) {
> case XmlPullParser.COMMENT:
> System.out.println(p.getText());
> break;
> }
>}
>I obtain:
><b
></b
>
>The greater than characters are lost !
>
>Is it a bug in my code or in the parser ?
>
>Greetings,
>Jean-Paul
>
>_______________________________________________
>SoapRMI mailing list
>http://www.extreme.indiana.edu/soap
>http://mailman.cs.indiana.edu/mailman/listinfo/soaprmi
>
>
--
"Mr. Pauli, we in the back are all agreed that your theory is crazy.
What divides us is whether it is crazy enough to be true." Niels H. D. Bohr