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; }; }
2

1 Answer 1

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

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


}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.