title: Xml parsing for soap response
body: <pre><code>how to parse soap response data
  
      &lt;?xml version="1.0" encoding="utf-8" ?&gt; 
       &lt;SOAP-ENV:Envelope 
            xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" 
            xmlns:sqltypes=
             "http://schemas.microsoft.com/SQLServer/2001/12/SOAP/types" 
             xmlns:sqlmessage=
               "http://schemas.microsoft.com/SQLServer/2001/12/SOAP/
                types/SqlMessage" 
              xmlns:sqlresultstream=
               "http://schemas.microsoft.com/SQLServer/2001/12/SOAP/types
                /SqlResultStream" 
              xmlns:tns="http://server/nwind2/soap"
        &lt;SOAP-ENV:Body&gt;
          &lt;tns:MethodNameResponse&gt;
            &lt;tns:OutputParam&gt;Error Code 1152&lt;/tns:OutputParam&gt; 
          &lt;/tns:MethodNameResponse&gt;
         &lt;/SOAP-ENV:Body&gt;
        &lt;/SOAP-ENV:Envelope&gt;
  </code></pre>
  
  <p>I expected the response data will be simple xml format, but the response is in soap-env.</p>
  
  <p>how to parse the soap envelop xml data?</p>
  
  <p>Is in soap-envelop format xml parsing is same has simple xml data parse?</p>
  
  <p><strong>example:Simple XML</strong></p>
  
  <pre><code>   &lt;?xml version="1.0" encoding="utf-8" ?&gt; 
           &lt;error &gt;Error Code 1152 &lt;/error&gt;
  </code></pre>
  
  <p>@all Any one advice me how to parse this kind on xml </p>
  
  <p>Thanks in advance.</p>