Create xml file and save it in internal storage android
<p>I want to check in the android internal storage if <code>new.xml</code> exists(which will be created by me) then it should return me a handle for it and i may be easily able to append new data to it.If it doesn't exists create a new one and add data to it.</p>

<p>My xml file structure will be simple like this.</p>

<pre><code>&lt;root&gt;
    &lt;record&gt;a&lt;/record&gt;
    &lt;record&gt;b&lt;/record&gt;
    &lt;record&gt;c&lt;/record&gt;
&lt;/root&gt;
</code></pre>

<p>If the file is there I will only add a new record to it.But if doesn't than I will create a new file and add the first record to it.</p>

<p>And How I will be able to read this data in an <code>arraylist</code>. An example with code would be great thanks in advance.</p>
