title: Reading XML to a Dictionary
body: <p>I need to read an XML file to a dictionary.</p>
  
  <p>I read few guides and I only got confused from weird words that I don't understand (such as nodes, XML validation etc.).
  So, could you please walk me through?</p>
  
  <p>I have an XML file which is written in this format:</p>
  
  <pre><code>&lt;database&gt;
      &lt;def number="1" name="one"/&gt;
      &lt;def number="2" name="two"/&gt;
  &lt;/database&gt;
  </code></pre>
  
  <p>As mentioned, I want to store it in a dictionary. How would I go about that?</p>