title: Displaying information read from XML
body: <p><sub>(I'm such a newbie at this that the answers just confuse me more. I need a direct, exact, solution to this problem, spelled out to me step by step)</sub></p>
  
  <p>I have 2 documents, <code>test.php</code> and <code>test.xml</code>. <code>test.php</code> will display the names of the faculty within a department. That's it, just a list. For example, for AT based on the XML document shown below:</p>
  
  <pre><code>John J. Doe
  Jill J. Doe
  </code></pre>
  
  <p>From a previous page I use query strings to get an id; example: <code>test.php?id=AT</code></p>
  
  <p>I need to display all the employee names within the department that they select. Below is a snippet of my XML document.</p>
  
  <pre><code>&lt;SOT&gt;
      &lt;DEPARTMENT name="Aviation Technology" id="AT"&gt;
          &lt;EMPLOYEE type="Faculty"&gt;
              &lt;LOGIN&gt;bdbowen&lt;/LOGIN&gt;
              &lt;PASSWORD&gt;bdbowen&lt;/PASSWORD&gt;
              &lt;NAME&gt;John J. Doe&lt;/NAME&gt;
              &lt;IMAGE&gt;images/faculty/bdbown.jpg&lt;/IMAGE&gt;
              &lt;OFFICE&gt;Knoy&lt;/OFFICE&gt;
              &lt;PHONE&gt;765.494.2884&lt;/PHONE&gt;
              &lt;EMAIL&gt;dsgriggs@purdue.edu&lt;/EMAIL&gt;
          &lt;/EMPLOYEE&gt;
          &lt;EMPLOYEE type="Faculty"&gt;
              &lt;LOGIN&gt;bdbowen&lt;/LOGIN&gt;
              &lt;PASSWORD&gt;bdbowen&lt;/PASSWORD&gt;
              &lt;NAME&gt;Jill J. Doe&lt;/NAME&gt;
              &lt;IMAGE&gt;images/faculty/bdbown.jpg&lt;/IMAGE&gt;
              &lt;OFFICE&gt;Knoy&lt;/OFFICE&gt;
              &lt;PHONE&gt;765.494.2884&lt;/PHONE&gt;
              &lt;EMAIL&gt;dsgriggs@purdue.edu&lt;/EMAIL&gt;
          &lt;/EMPLOYEE&gt;
      &lt;/DEPARTMENT&gt;
      &lt;DEPARTMENT name="Mechanical Engineering Technology" id="MET"&gt;
          &lt;EMPLOYEE type="Faculty"&gt;
              &lt;LOGIN&gt;bdbowen&lt;/LOGIN&gt;
              &lt;PASSWORD&gt;bdbowen&lt;/PASSWORD&gt;
              &lt;NAME&gt;John J. Doe&lt;/NAME&gt;
              &lt;IMAGE&gt;images/faculty/bdbown.jpg&lt;/IMAGE&gt;
              &lt;OFFICE&gt;Knoy&lt;/OFFICE&gt;
              &lt;PHONE&gt;765.494.2884&lt;/PHONE&gt;
              &lt;EMAIL&gt;dsgriggs@purdue.edu&lt;/EMAIL&gt;
          &lt;/EMPLOYEE&gt;
      &lt;/DEPARTMENT&gt;
  &lt;/SOT&gt;
  </code></pre>
  
  <p>For instance, if they select the link that uses a GET to pull in the AT id, I want to display the following on the page:</p>
  
  <pre><code>John J. Doe
  Jill J. Doe
  </code></pre>
  
  <p>How can I do that?</p>