Here you can find the source of readInt(XmlPullParser parser)
public static int readInt(XmlPullParser parser) throws IOException, XmlPullParserException
//package com.java2s; //License from project: Open Source License import java.io.IOException; import org.xmlpull.v1.XmlPullParser; import org.xmlpull.v1.XmlPullParserException; public class Main { public static int readInt(XmlPullParser parser) throws IOException, XmlPullParserException {/* www. j a v a2s . c om*/ String result = ""; if (parser.next() == XmlPullParser.TEXT) { result = parser.getText(); parser.nextTag(); } return Integer.parseInt(result); } }