file not found with DocumentBuilderFactory
<p>Before posting this question i had search all the places to get some similar question, I had found questions but no answer worked for me, I used getResources, that approach also gave me a error saying Undefined Method, using this or Context also dint work, I just need to read and write a xml in android app and the xml should be stored in my app in res folder or any other folder which is standard, Right now i am using the below code, Please help  me with this. Thanks a lot ..Max</p>

<pre><code>                DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
                DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();

                Document doc = docBuilder.parse (new File("savecredentials.xml"));
</code></pre>

<p>Using getResources doesnt help, How to use getResources when it is undefined, and if i use context it doesnt work , Any simple solution for this one. </p>
