title: PHP doesn't continue looping on second level with foreach in XML
body: <p><strong>XML Code (FileZilla Server.xml):</strong></p>
  
  <pre><code>&lt;FileZillaServer&gt;
      &lt;Users&gt;
          &lt;User Name="Bill"&gt;
              &lt;Option Name="Pass"&gt;window&lt;/Option&gt;
          &lt;/User&gt;
          &lt;User Name="Paul"&gt;
              &lt;Option Name="Pass"&gt;apple&lt;/Option&gt;
          &lt;/User&gt;
      &lt;/Users&gt;
  &lt;/FileZillaServer&gt;
  </code></pre>
  
  <p><strong>PHP Code:</strong></p>
  
  <pre><code>$filezilla = 'FileZilla Server.xml';
  $xml = simplexml_load_file($filezilla);
  
  foreach ($xml-&gt;Users-&gt;User as $user) {
      echo "&lt;strong&gt;".$user['Name']."&lt;/strong&gt;&lt;br /&gt;";
          foreach ($xml-&gt;Users-&gt;User-&gt;Option as $option) {
              if ($option['Name'] == "Pass") {
                  echo $option."&lt;br /&gt;";
              }
          }
      echo "&lt;br /&gt;";
  }
  </code></pre>
  
  <p><strong>Output is:</strong></p>
  
  <pre><code>Bill
  window
  
  Paul
  window
  </code></pre>
  
  <p><strong>Output should be:</strong></p>
  
  <pre><code>Bill
  window
  
  Paul
  apple
  </code></pre>
  
  <p>It seems, that the inner foreach repeats itself without going further.
  How can I correct this?</p>
  
  <p>Thanks.</p>