Here you can find the source of nextElement(XmlPullParser parser)
@SuppressWarnings("static-access") public static final void nextElement(XmlPullParser parser) throws XmlPullParserException, IOException
//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*/ } } }