title: How to remove namespace shortcuts parsing SOAP as XML in PHP?
body: <p>For example i have a string like this:</p>
  
  <pre><code>&lt;SOAP-ENV:Body&gt;
      &lt;d:ProbeMatches&gt;
          &lt;d:ProbeMatch&gt;
              &lt;d:Types&gt;dn:NetworkVideoTransmitter&lt;/d:Types&gt;
              &lt;d:Scopes&gt;onvif://www.onvif.org/Profile/Streaming onvif://www.onvif.org/type/video_encoder onvif://www.onvif.org/type/audio_encoder onvif://www.onvif.org/hardware/IPCAM onvif://www.onvif.org/name/IPNC onvif://www.onvif.org/location/&lt;/d:Scopes&gt;
              &lt;d:XAddrs&gt;http://192.168.0.36:8080/onvif/device_service&lt;/d:XAddrs&gt;
              &lt;d:MetadataVersion&gt;1&lt;/d:MetadataVersion&gt;
          &lt;/d:ProbeMatch&gt;
      &lt;/d:ProbeMatches&gt;
  &lt;/SOAP-ENV:Body&gt;
  </code></pre>
  
  <p>And i need to convert it to <code>array</code> so i use <code>simplexml_load_string</code>, but the main problem is that the result can be different... In one case it cat be <code>&lt;d:Types&gt;</code>, in other <code>&lt;Types xmlns=".*"&gt;</code> or some other shortcuts, which fully occurs in keys and i need to get adress as <code>['ProbeMatches']['ProbeMatch']['XAddrs']</code></p>