Here you can find the source of skipCurrentTag(XmlPullParser parser)
public static void skipCurrentTag(XmlPullParser parser) throws XmlPullParserException, IOException
//package com.java2s; import java.io.IOException; import org.xmlpull.v1.XmlPullParser; import org.xmlpull.v1.XmlPullParserException; public class Main { public static void skipCurrentTag(XmlPullParser parser) throws XmlPullParserException, IOException { int outerDepth = parser.getDepth(); int type; while ((type = parser.next()) != XmlPullParser.END_DOCUMENT && (type != XmlPullParser.END_TAG || parser.getDepth() > outerDepth)) { }/*from ww w.j a v a2 s. co m*/ } }