Android: XML Parsing via URL

view story

http://stackoverflow.com – I have been working on some JSON and XML parsing via URL. The URL which I'm using gives JSONObject and inside that I have XML. Here is my code what I have been doing for this: HttpClient hClient = new DefaultHttpClient(); HttpGet hGet = new HttpGet( "URL for getting results"); ResponseHandler<String> rHandler = new BasicResponseHandler(); data = hClient.execute(hGet, rHandler); JSONObject json = new JSONObject(data); // get xml string form jsonObject String str_xml = json.getString("output"); // now convert str_x (HowTos)