Here you can find the source of extractFirstChildTextIgnoreRest( XmlPullParser paramXmlPullParser)
public static String extractFirstChildTextIgnoreRest( XmlPullParser paramXmlPullParser) 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 extractFirstChildTextIgnoreRest( XmlPullParser paramXmlPullParser) throws XmlPullParserException, IOException { int i = paramXmlPullParser.getDepth(); int j = paramXmlPullParser.next(); String str = null;/*from ww w . j ava2 s. c om*/ if (j != 1) { int k = paramXmlPullParser.getDepth(); if (j == 4) if (str == null) str = paramXmlPullParser.getText(); while ((j != 3) || (k != i)) { j = paramXmlPullParser.next(); break; } return str; } throw new XmlPullParserException( "End of document reached; never saw expected end tag at depth " + i); } }