parsing xml show an errror
<p>my code is going to catch block if  cxml parsing document is not complete i want to check only if xml [1][1] =00 return true other wise go catch block what do i do? please help me
below is my code which parse xml </p>

<pre><code>       public static   String[][] AgAppXMLParser( String parUrl) 
  {     
    flag = true;       
    String _node,_element;
    String[][] xmlRespone = null;
    HttpURLConnection urlConnection = null;       
    try 
        {
      URL finalUrl = new URL(url);              
                urlConnection = (HttpURLConnection)  
    finalUrl.openConnection();
                urlConnection.setConnectTimeout(10000);               
                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(""+e);
         }  
     return xmlRespone;        

 }  

          this is in complete xml file which code is parsing i want to just check if  
   [1][1] have value 00 return file else  go catch block


 &lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;agApp&gt;
&lt;response&gt;00&lt;/response&gt;  
 &lt;messageType&gt;C2C&lt;/messageType&gt;
 &lt;transactionRef&gt;&lt;/transactionRef&gt;
  &lt;amountPaid&gt;     &lt;/amountPaid&gt;
  &lt;/agApp&gt;



       when i use this file is work fine 

       &lt;?xml version="1.0" encoding="iso-8859-1"?&gt;
 &lt;agApp&gt;
 &lt;response&gt;00&lt;/response&gt;
 &lt;messageType&gt;C2C&lt;/messageType&gt;
 &lt;transactionRef&gt;1002&lt;/transactionRef&gt;
 &lt;amountPaid&gt;1000&lt;/amountPaid&gt;
 &lt;/agApp&gt;
</code></pre>
