title: How to read xml values from specified path as shown in code
body: <p>I created xml file  </p>
  
  <pre><code>getFilesDir().getAbsolutePath()+ File.separator + "test.xml"
  </code></pre>
  
  <p>in this path, i want to read xml values from this path how can i do it. please send me code for accessing file on that path. this xml is created in this path in DDMS (<code>data/data/&lt;packagename&gt;/files/xmlname.xml</code>) please help me.</p>
  
  <p>Thank You,</p>
  
  <pre><code>TextView  txtoldpwd=(TextView)findViewById(R.id.txtOldPwd);
  TextView txtnewpwd=(TextView)findViewById(R.id.TxtNewPwd);
  File objFile=new File(getFilesDir().getAbsolutePath()+ File.separator + "test.xml");
  try {
      if (objFile.exists()){
          objFile.delete();
      }
      objFile.createNewFile();
      FileOutputStream  objFileStream=new FileOutputStream(objFile);
  
      XmlSerializer objXmlSrl=Xml.newSerializer();
      objXmlSrl.setOutput(objFileStream,"UTF-8");
      objXmlSrl.startDocument(null, true);
      objXmlSrl.setFeature("http://xmlpull.org/v1/doc/features.html#indent-output", true);
      objXmlSrl.startTag(null, "ChangePassword");
      objXmlSrl.startTag(null, "Oldpassword");
      objXmlSrl.text(txtoldpwd.getText().toString());
      objXmlSrl.endTag(null, "Oldpassword");
      objXmlSrl.startTag(null, "Newpassword");
      objXmlSrl.text(txtnewpwd.getText().toString());
      objXmlSrl.endTag(null, "Newpassword");
      objXmlSrl.endTag(null, "ChangePassword"); 
      objXmlSrl.endDocument();
      objFileStream.close();
  } catch (Exception e) {
      // TODO: handle exception
  }
  </code></pre>