Here you can find the source of loadFloatByParser(XmlPullParser parser)
public static float loadFloatByParser(XmlPullParser parser)
//package com.java2s; import java.io.IOException; import org.xmlpull.v1.XmlPullParser; import org.xmlpull.v1.XmlPullParserException; public class Main { public static float loadFloatByParser(XmlPullParser parser) { String line;/*from w w w. j a v a 2 s. c o m*/ try { line = parser.nextText(); line = line.trim(); return Float.parseFloat(line); } catch (XmlPullParserException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } return (Float) null; } }