title: How to convert an XML string into a DOMDocument in PHP?
body: <p>I got an example XML string from a customer, which I would like to transform to a DOMDocument. I can't seem to get the first node right though....</p>
  
  <p>The string looks like this;</p>
  
  <pre><code>&lt;ev:Events xmlns:ev="xsdEvents" xsi:schemaLocation="xsdEvents [url]" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
      &lt;Node&gt;
          &lt;OtherNode&gt;value&lt;/OtherNode&gt;
      &lt;/Node&gt;
  &lt;/ev:Events&gt;
  </code></pre>
  
  <p>How would I set this up the proper way via DOMDocument in PHP?</p>