Here you can find the source of nextText(XmlPullParser pp, String namespace, String name)
public static String nextText(XmlPullParser pp, String namespace, String name) throws IOException, XmlPullParserException
//package com.java2s; import java.io.IOException; import org.xmlpull.v1.XmlPullParser; import org.xmlpull.v1.XmlPullParserException; public class Main { /**/*from www .ja va 2 s . c om*/ * Read text content of element ith given namespace and name * (use null namespace do indicate that nemspace should not be checked) */ public static String nextText(XmlPullParser pp, String namespace, String name) throws IOException, XmlPullParserException { if (name == null) { throw new XmlPullParserException( "name for element can not be null"); } pp.require(XmlPullParser.START_TAG, namespace, name); return pp.nextText(); } }