I have this format xml from a web service:
<string xmlns="http://someipaddress">
{ "recordcount": "89",
"data":
[
{ "Code": "1",
"Name": "Main Store"
},
{ "Code": "2",
"Name": "Alternate Store"
}
]
} </string>
I need to get it in android and convert it into an array to perform many tasks on it.
Is there an android API that will take that xml directly and just give me an array?
I've already worked on receiving this kind of json:
[
{"id":"36",
"username":"Simulator"
},
{"id":"36",
"username":"Simulator"
}
]
and converting it into a JSONArray by using:
JSONArray jsonArray = new JSONArray(contentAsString);
So I was wondering if there is anything similar for XML on Android?
Thx