我的ksoap web服务将xml返回为这种格式我如何从中获取
anyType{country=anyType{country_name=Egypt; };
country=anyType{country_name=Pakistan; };
country=anyType{country_name=United Kingdom; };
country=anyType{country_name=United States; }; }
最佳答案
Arraylist<String> countries = new ArrayList<String>();
for(int i=0;i<response.getPropertyCount();i++){
countries.add(response.getProperty(i).getPropertyAsString(0));
}