title: XmlReader Fail To Read Empty Nodes These Like Chrome Reader
body: <p>i have a problem with reading empty elements formatted like <code>&lt;eanCode/&gt;</code>. After this element, <code>XmlReader</code> class is failing to read next element.</p>
  
  <pre><code>&lt;EanCode/&gt;&lt;Stock&gt;15&lt;/Stock&gt;
  
  if ($reader-&gt;nodeType == XMLReader::ELEMENT) {
              switch ($reader-&gt;name) {
  
             case 'Stock':
                      $reader-&gt;read();
                      $stock = $reader-&gt;value;
              ECHO 'stokkk adet = '. $stock;
                      break;...
  </code></pre>
  
  <p>So, I decided to replace <code>&lt;eanCode/&gt;</code> with <code>&lt;eanCode&gt;&lt;/eanCode&gt;</code>. But it's difficult to write an algorithm. Can anyone supply a corresponding preg replace method, please?</p>