Here you can find the source of nextDirectChildTag( XmlPullParser paramXmlPullParser, int paramInt)
public static String nextDirectChildTag( XmlPullParser paramXmlPullParser, int paramInt) 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 String nextDirectChildTag( XmlPullParser paramXmlPullParser, int paramInt) throws XmlPullParserException, IOException { int i = paramInt + 1; for (int j = paramXmlPullParser.next(); j != 1; j = paramXmlPullParser .next()) {/*from ww w . jav a 2 s . co m*/ int k = paramXmlPullParser.getDepth(); if ((j == 2) && (k == i)) return paramXmlPullParser.getName(); if ((j == 3) && (k == paramInt)) return null; } throw new XmlPullParserException( "End of document reached; never saw expected end tag at depth " + paramInt); } }