pull解析XML
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