title: How to read soapenv:Envelope xml node in php?
body: <p>I have below given xml data file. i want to read  node. can anyone help me out.</p>
  
  <pre><code>$this-&gt;soapResponse 
  </code></pre>
  
  <p>has response xml data.</p>
  
  <pre><code> &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"&gt;
  &lt;soapenv:Header/&gt;
  &lt;soapenv:Body&gt;
  &lt;addItemToShoppingCartResponse xmlns="http://www.sample.com/services"&gt;
  &lt;ack&gt;Warning&lt;/ack&gt;
  &lt;/addItemToShoppingCartResponse&gt;
  &lt;/soapenv:Body&gt;
  &lt;/soapenv:Envelope&gt;
  </code></pre>
  
  <p>i am trying</p>
  
  <pre><code>$xml = new  SimpleXMLElement($this-&gt;soapResponse);
  print_r((string)$xml-&gt;addItemToShoppingCartResponse-&gt;ack );
  </code></pre>