title: How to search for certain name in XML with PHP
body: <p>I want to be able to go trough the each of the nodes in XML and when I find a certain <strong>username</strong> I want to read all the data from that node.</p>
  
  <p>For example:</p>
  
  <pre><code>&lt;Users&gt;
     &lt;User&gt;
        &lt;Username&gt;admin&lt;/Username&gt;
        &lt;Server&gt;10.x.x.x&lt;/Server&gt;
     &lt;/User&gt;
     &lt;User&gt;
        &lt;Username&gt;test&lt;/Username&gt;
        &lt;Server&gt;11.x.x.x&lt;/Server&gt;
     &lt;/User&gt;
  &lt;/Users&gt;
  </code></pre>
  
  <p>I need to be able to find <strong>Username=admin</strong> and then get the <strong>Server</strong> from the same node.
  I will be using a PHP and you can make example with saving in any two variables.</p>