CVS Update: xmlpull-api-v1/src/java/samples/eventlist

Stefan Haustein <[email protected]>
Newsgroups gmane.text.xml.xmlpull.devel
Message-ID <[email protected]>
haustein    03/01/30 14:43:55

  Modified:    src/java/samples/eventlist EventList.java
  Log:
  fixed some "the static field XmlPullParser.XXX should be accessed in a static way" compiler warnings.
  
  Revision  Changes    Path
  1.6       +4 -4      xmlpull-api-v1/src/java/samples/eventlist/EventList.java
  
  Index: EventList.java
  ===================================================================
  RCS file: /l/extreme/cvspub/xmlpull-api-v1/src/java/samples/eventlist/EventList.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -b -t -w -r1.5 -r1.6
  --- EventList.java	17 Apr 2002 16:46:46 -0000	1.5
  +++ EventList.java	30 Jan 2003 19:43:55 -0000	1.6
  @@ -18,12 +18,12 @@
           XmlPullParser xpp = factory.newPullParser();
           xpp.setInput (reader);
           int eventType;
  -        while ((eventType = xpp.next()) != xpp.END_DOCUMENT) {
  -            if(eventType == xpp.START_TAG) {
  +        while ((eventType = xpp.next()) != XmlPullParser.END_DOCUMENT) {
  +            if(eventType == XmlPullParser.START_TAG) {
                   System.out.println("START_TAG "+xpp.getName());
  -            } else if(eventType == xpp.END_TAG) {
  +            } else if(eventType == XmlPullParser.END_TAG) {
                   System.out.println("END_TAG   "+xpp.getName());
  -            } else if(eventType == xpp.TEXT) {
  +            } else if(eventType == XmlPullParser.TEXT) {
                   System.out.println("TEXT      "+xpp.getText());
               }
           }
  
  
  


To unsubscribe from this group, send an email to:
[email protected]

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.