parse an xml file (with DOM parser) in android
<p>I have an XML file /res/raw/myxml.xml</p>

<p>I want to pase it with DOM Parser</p>

<p>I used this <a href="http://www.ibm.com/developerworks/opensource/library/x-android/" rel="nofollow">documentation</a>  but my problem how to read this XML file in local</p>

<pre><code>DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
        DocumentBuilder db = dbf.newDocumentBuilder();
        Document doc = mcontext.getResources(R.raw.myxml);
        doc.getDocumentElement().normalize();
</code></pre>

<p>I have an error in this line <code>Document doc = mcontext.getResources(R.raw.myxml);</code> in mcontext the error message is  <code>mcontext cannot be resolved</code></p>

<p>I want to parse this document with DOM not with SAX</p>

<p>I try the SAX Parser but with it i have a problem with execution of an XPATH querry, for this i changed the parser</p>
