android异常
public static List<Work> URLReadXmlByPull(String xmlUrlPath)
throws Exception {
List<Work> listWorks = new ArrayList<Work>();
Work works = null;
URL url = new URL(xmlUrlPath);
// 构建XmlPullParserFactory
XmlPullParserFactory pullParserFactory = XmlPullParserFactory
.newInstance();
// 获取XmlPullParser的实例
XmlPullParser xmlPullParser = pullParserFactory.newPullParser();
// 设置输入流 xml文件装载器
xmlPullParser.setInput(url.openConnection().getInputStream(), "UTF-8");
他在最后一句就报异常了,求高手