title: Adding Simple XML Element with PHP that has a Colon
body: <p>I am attempting to add an XML attribute with PHP that contains a colon.</p>
  
  <p>I want it to look like this:</p>
  
  <pre><code>&lt;record xsi:schemaLocation="http://abc.com/abcItem file:///somename.xsd"&gt;
  </code></pre>
  
  <p>I attempted to add the attribute like this:</p>
  
  <pre><code>$record_xml-&gt;addAttribute('xsi:schemaLocation','http://abc.com file:///somepath/somename.xsd');
  </code></pre>
  
  <p>but the resulting XML is:</p>
  
  <pre><code>&lt;record schemaLocation="http://abc.com/abcItem file:///somepath/somename.xsd"&gt;
  </code></pre>