3

My kSOAP web service return the xml into this format how can I fetch country_name from this

    anyType{country=anyType{country_name=Egypt; }; 
    country=anyType{country_name=Pakistan; };
    country=anyType{country_name=United Kingdom; };
    country=anyType{country_name=United States; }; }
onkar
  • 4,427
  • 10
  • 52
  • 89
Umer Abid
  • 397
  • 1
  • 14

1 Answers1

1
Arraylist<String> countries = new ArrayList<String>();
for(int i=0;i<response.getPropertyCount();i++){

countries.add(response.getProperty(i).getPropertyAsString(0));


}
rbrlnx
  • 286
  • 7
  • 23