how to parse xml using url from local file
<p>i have a code which parse xml from url but if i place file in res folder how do i parse same file?
below is two my code which parse xml from url how od i give path of local file???
    xmlRespone = AgAppHelperMethods.AgAppXMLParser( "weburl");  </p>

<pre><code>  public class AgAppHelperMethods 
    {

    //  String url = "https://demo.accessgroup.mobi/"; 

  public static   String[][] AgAppXMLParser( String parUrl) 
  {     
    flag = true;       
    String _node,_element;
    String[][] xmlRespone = null;
    HttpURLConnection urlConnection = null;       
    try 
        {
                String url = AgAppHelperMethods.getUrl() + parUrl;
                URL finalUrl = new URL(url);                
                urlConnection = (HttpURLConnection)  
  finalUrl.openConnection();
                urlConnection.setConnectTimeout(3000);                
                urlConnection.connect();                
                DocumentBuilderFactory dbf =  

 DocumentBuilderFactory.newInstance();
                DocumentBuilder db = dbf.newDocumentBuilder();
                Document doc = db.parse(finalUrl.toString());

 doc.getDocumentElement().normalize();            
                NodeList list=doc.getElementsByTagName("*");
                _node=new String();
                _element = new String();
                xmlRespone = new  
  String[list.getLength()][2];                  
                //this "for" loop is used to parse through the
                //XML document and extract all elements and their
                //value, so they can be displayed on the device 
                for (int i=0;i&lt;list.getLength();i++)
                    {
                        Node value=list.item(i).       
    getChildNodes().item(0);
                        _node=list.item(i).getNodeName();
                        _element=value.getNodeValue();
                        xmlRespone[i][0] = _node;
                        xmlRespone[i][1] = _element;        
                    }//end for                  
                urlConnection.disconnect();      
        }//end try  
       catch (Exception e)
         {
             flag=false;
             Log.e(LOG_TAG, " Host not responding", e);
             Messages.setMessage("error"+e.getMessage());
         }  
     return xmlRespone;        
</code></pre>
