Android XmlPullParser Move to Next nextElement(XmlPullParser parser)

Here you can find the source of nextElement(XmlPullParser parser)

Description

next Element

Declaration

@SuppressWarnings("static-access")
    public static final void nextElement(XmlPullParser parser)
            throws XmlPullParserException, IOException 

Method Source Code

//package com.java2s;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;
import java.io.IOException;

public class Main {
    @SuppressWarnings("static-access")
    public static final void nextElement(XmlPullParser parser)
            throws XmlPullParserException, IOException {
        int type;
        while ((type = parser.next()) != parser.START_TAG
                && type != parser.END_DOCUMENT) {
            ;/*w  ww  .ja  va2 s  .  c  o m*/
        }
    }
}

Related

  1. nextElement(XmlPullParser parser)
  2. nextElement(XmlPullParser parser)
  3. nextElement(XmlPullParser parser)
  4. nextElement(XmlPullParser parser)
  5. nextElement(XmlPullParser parser)
  6. nextElementWithin(XmlPullParser parser, int outerDepth)
  7. nextElementWithin(XmlPullParser parser, int outerDepth)
  8. nextElementWithin(XmlPullParser parser, int outerDepth)
  9. nextEndTag(XmlPullParser pp)