title: Use java to parse xml with several parents
body: <p>i´m new to java and parsing and have studied all simple examples. They give me the basics, but how would i parse a more advanced xml-file like the one below.</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;employee name="carlos"&gt;
    &lt;employment_form works="fulltime"&gt;
       &lt;employment_number&gt;555&lt;/employment_number&gt;
       &lt;days_worked&gt;200&lt;/days_worked&gt;
       &lt;employment_deps dependencies="started"&gt;
          &lt;Another_Employee NAME="jenny"/&gt;
          &lt;Another_Employee NAME="jimmy"/&gt;
       &lt;/employment_deps&gt;
       &lt;employment_deps dependencies="now"&gt;
          &lt;Another_Employee NAME="jenny"/&gt;
          &lt;Another_Employee NAME="jimmy"/&gt;
          &lt;Another_Employee NAME="lisa"/&gt;
       &lt;/employment_deps&gt;
    &lt;/employment_form&gt;
    &lt;employment_form works="parttime"&gt;
       &lt;employment_number&gt;554&lt;/employment_number&gt;
       &lt;days_worked&gt;21&lt;/days_worked&gt;
       &lt;employment_deps dependencies="started"&gt;
          &lt;Another_Employee NAME="mike"/&gt;
          &lt;Another_Employee NAME="donny"/&gt;
          &lt;Another_Employee NAME="fredrik"/&gt;
       &lt;/employment_deps&gt;
       &lt;employment_deps dependencies="when finished"&gt;
          &lt;Another_Employee NAME="trish"/&gt;
          &lt;Another_Employee NAME="carl"/&gt;
          &lt;Another_Employee NAME="noone"/&gt;
       &lt;/employment_deps&gt;
      &lt;/employment_form&gt;
     &lt;/employee&gt;
  </code></pre>
  
  <p>I want to show a detailed list of each employment_form;</p>
  
  <pre><code>carlos fulltime 555 200 started
  jenny
  jimmy
  carlos fulltime 555 200 now
  jenny
  jimmy
  lisa
  carlos parttime 554 21 started
  mike
  donny
  fredrik
  carlos parttime 554 21 now
  trish
  carl
  noone
  </code></pre>
  
  <p>I hope some can help me, I have no idea where to begin.</p>