title: Java read XML file and put specific tags into list
body: <p>after searching for a long time i wasn't able to find anything that helped me. (I'm also new to java)</p>
  
  <p>I have a XML file like this</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
  &lt;Personen&gt;
      &lt;Person&gt;
          &lt;birthday&gt;2002-03-01&lt;/birthday&gt;
          &lt;name&gt;sad&lt;/name&gt;
          &lt;comment&gt;Test Comment&lt;/comment&gt;
      &lt;/Person&gt;
      &lt;Person&gt;
          &lt;birthday&gt;1999-02-21&lt;/birthday&gt;
          &lt;name&gt;Test1&lt;/name&gt;
          &lt;comment&gt;Test Comment&lt;/comment&gt;
      &lt;/Person&gt;
      &lt;Person&gt;
          &lt;birthday&gt;2005-02-21&lt;/birthday&gt;
          &lt;name&gt;Test2&lt;/name&gt;
          &lt;comment&gt;Test Comment&lt;/comment&gt;
      &lt;/Person&gt;
  &lt;/Personen&gt;
  </code></pre>
  
  <p>And i need to get all names and birthdays from the file and put them into a list:</p>
  
  <pre><code>$list-&gt;:
  "sad","2002-03-01"
  "Test1","1999-02-21"
  "Test2","2005-02-21"
  </code></pre>
  
  <p>And right know i have absolutely no idea how to do that.</p>