我的kSOAP网络服务将xml恢复为此格式如何从此
获取country_name
anyType{country=anyType{country_name=Egypt; };
country=anyType{country_name=Pakistan; };
country=anyType{country_name=United Kingdom; };
country=anyType{country_name=United States; }; }
答案 0 :(得分:1)
Arraylist<String> countries = new ArrayList<String>();
for(int i=0;i<response.getPropertyCount();i++){
countries.add(response.getProperty(i).getPropertyAsString(0));
}