title: Remove namespace from XML using PHP
body: <p>I have an XML document that looks like this:</p>
  
  <pre><code>&lt;Data 
    xmlns="http://www.domain.com/schema/data" 
    xmlns:dmd="http://www.domain.com/schema/data-metadata"
  &gt;
    &lt;Something&gt;...&lt;/Something&gt;
  &lt;/Data&gt;
  </code></pre>
  
  <p>I am parsing the information using SimpleXML in PHP. I am dealing with arrays and I seem to be having a problem with the namespace. </p>
  
  <p>My question is: How do I remove those namespaces? I read the data from an XML file.</p>
  
  <p>Thank you!</p>