我做错了什么?
InputStream in = new FileInputStream("/sdcard/new.xml");
XmlPullParser parser1 = Xml.newPullParser();
parser1.setInput(in, "utf-8");
好的。尝试解析xml代码的每个标签
while (parser1.getEventType()!= XmlPullParser.END_DOCUMENT) {
Toast.makeText(this, parser1.getName(),Toast.LENGTH_SHORT).show();
parser1.nextToken();}
错误 :(