pull解析XML

时间:2018-06-23 14:42:44
【文件属性】:

文件名称:pull解析XML

文件大小:45KB

文件格式:RAR

更新时间:2018-06-23 14:42:44

android

pull解析XML try { List infos = weatherService.getWeatherInfos(MainActivity.class.getClassLoader().getResourceAsStream("z.xml")); StringBuffer sb = new StringBuffer(); for(WeatherInfos info : infos){ String str = info.toString(); sb.append(str); sb.append("/n"); } tV.setText(sb.toString()); Toast.makeText(this,"解析成功",0); } catch (Exception e) { // TODO: handle exception Toast.makeText(this,"解析失败",0); }


【文件预览】:
com.mzxy.tianqi
----bin()
--------res()
--------jarlist.cache(119B)
--------classes()
----res()
--------drawable-ldpi()
--------drawable-hdpi()
--------drawable-xhdpi()
--------values()
--------drawable-mdpi()
--------layout()
----proguard-project.txt(781B)
----assets()
----gen()
--------com()
----.settings()
--------org.eclipse.jdt.core.prefs(177B)
----src()
--------z.xml(643B)
--------com()
----.project(851B)
----.classpath(475B)
----project.properties(563B)
----AndroidManifest.xml(744B)

网友评论