How to parse XML file from sdcard using Dom
<p>I want to parse xml file from sdcard. i used DOM concept. here i attached the code  </p>

<pre><code>InputStream filename = null;
    Document obj_doc = null;
    DocumentBuilderFactory doc_build_fact = null;
    DocumentBuilder doc_builder = null;
    filename = new FileInputStream("/sdcard/filename.xml");
    doc_build_fact = DocumentBuilderFactory.newInstance();
    doc_builder = doc_build_fact.newDocumentBuilder();

    obj_doc = doc_builder.parse(filename);

    NodeList obj_nod_list = null;
    if (null != obj_doc) {
        org.w3c.dom.Element feed = obj_doc.getDocumentElement();
        obj_nod_list = feed.getElementsByTagName("MyTag"); 
    }
</code></pre>

<p>I dont know how to get a String from xml file. can anyone guide me to get a string variable from xml. </p>
