title: Read attribute value from XML which contains prefix with colon in element name and attribute name
body: <p>I have element in XML like below</p>
  
  <pre><code>&lt;user:name test:one = "firstUser" /&gt;
  </code></pre>
  
  <p>I use <strong>PHP DOM Xpath</strong> to read XML </p>
  
  <p>$doc = new DOMDocument();</p>
  
  <pre><code>$xpath = new DOMXPath($doc);
  $xml = simplexml_load_file(file path here);
  echo '&lt;pre&gt;'; print_r($xml);
  </code></pre>
  
  <p>and output is blank</p>
  
  <pre><code>SimpleXMLElement Object
  (
  )
  </code></pre>
  
  <p>If I try removing <strong>:</strong> and prefix like below</p>
  
  <pre><code>&lt;name one = "firstUser" /&gt; 
  </code></pre>
  
  <p>then it reads element. output is</p>
  
  <pre><code>SimpleXMLElement Object
  (
      [name] =&gt; SimpleXMLElement Object
      (
          [@attributes] =&gt; Array
          (
              [one] =&gt; firstUser
          )
      )
  )
  </code></pre>
  
  <p>How I can read element value with <strong>prefix and colon (:)</strong></p>
  
  <p>Updated : sample XML file</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;root xmlns:test="http://www.w3.org/2001/XMLSchema"  xmlns:user="http://www.w3.org/2001/XMLSchema"&gt;
      &lt;user:name test:one = "firstUser" /&gt;
      &lt;name second = "secondUser" /&gt;
  &lt;/root&gt;
  </code></pre>