Create XML file in Local Memory
<p>I want to read XML data from the net and then store it in a XML file in android device's local memory.
How do i do that.
I have used following code for getting XML data:</p>

<pre><code>HttpClient hc = new DefaultHttpClient();
HttpPost post = new HttpPost(url);

HttpResponse rp = hc.execute(post);

if(rp.getStatusLine().getStatusCode() == HttpStatus.SC_OK)
{
String str = EntityUtils.toString(rp.getEntity());
}
</code></pre>

<p>I am getting the xml data as string. Now I want to dump it ina  xml file.</p>

<p>Thanks</p>
