title: How to recursively walk tree with SimpleXMLIterator?
body: <p>I have this sample code, why my code can find only test3 tag? Where are test and test2?</p>
  
  <pre><code>$iter = new RecursiveIteratorIterator(
      new SimpleXMLIterator(file_get_contents('./test.xml'))
  );
  
  foreach ($iter as $node) {
      echo "Tag found: ".$node-&gt;getName()."\n";
  }
  </code></pre>
  
  <p>test.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;test&gt;
    &lt;test2&gt;
      &lt;test3&gt;dsfds&lt;/test3&gt;
    &lt;/test2&gt;
  &lt;/test&gt;
  </code></pre>