Here you can find the source of loadStringArrayByParser(XmlPullParser parser)
public static String[] loadStringArrayByParser(XmlPullParser parser)
//package com.java2s; import java.io.IOException; import org.xmlpull.v1.XmlPullParser; import org.xmlpull.v1.XmlPullParserException; public class Main { public static String[] loadStringArrayByParser(XmlPullParser parser) { String line;/*from ww w .j a va2 s . c o m*/ try { line = parser.nextText(); line = line.trim(); line = line.replace("\\r\\n", " "); line = line.replace("\n", " "); String[] szStrings = line.split("[ ]+"); return szStrings; } catch (XmlPullParserException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } return null; } }