[SoapRMI] Re: XPP3-1.1.3.4-RC1 bug
Aleksander Slominski
aslom_at_cs.indiana.edu
Wed, 30 Jul 2003 13:17:02 -0400
hi Al,
thanks for reporting it andproviding use case (it definitely increases
chances of fixing bug quickly!). so it is now fixed in RC2 see
http://www.extreme.indiana.edu/bugzilla/show_bug.cgi?id=147 for details.
thanks,
alek
BTW: ≶ is not valid XML entity - did you mean <.
Alexis Agahi wrote:
>Hi,
>
>I've notice a bug.
>If required I can dig to fix it (as it seems easy).
>
>I desperatly need it for my app (http://open-im.net) to get a stable release.
>
>
>XPP3 dont parse correctly textnode starting with '&'
>
>such as
><foo>&</foo>
><foo>≶&</foo>
>
>xpp.TEXT eventtype is not recognized as it should
>
>
>Simple test
>-------------
><snip/>
>
> public static void main(String args[])
> throws XmlPullParserException, IOException {
>
> XmlPullParserFactory factory = XmlPullParserFactory.newInstance();
> factory.setNamespaceAware(true);
> XmlPullParser xpp = factory.newPullParser();
>
> xpp.setInput( new StringReader( "<foo>&</foo>" ) );
> int eventType = xpp.getEventType();
> while (eventType != xpp.END_DOCUMENT) {
> if(eventType == xpp.START_DOCUMENT) {
> System.out.println("Start document");
> } else if(eventType == xpp.END_DOCUMENT) {
> System.out.println("End document");
> } else if(eventType == xpp.START_TAG) {
> System.out.println("Start tag "+xpp.getName());
> } else if(eventType == xpp.END_TAG) {
> System.out.println("End tag "+xpp.getName());
> } else if(eventType == xpp.TEXT) {
> System.out.println("Text "+xpp.getText());
> }
> eventType = xpp.next();
> }
> }
>------------------
>
>We should have an output such as:
>"Text &"
>
>instead we get nothing
>
>
>Regards
>
>
>
>
--
If everything seems under control, you're just not going fast enough. —Mario Andretti