title: How to get all the info in XML into dictionary with Python
body: <p>Let's say I have an XML file as follows.</p>
  
  <pre><code>&lt;A&gt;
   &lt;B&gt;
    &lt;C&gt;"blah"&lt;/C&gt;
    &lt;C&gt;"blah"&lt;/C&gt;
   &lt;/B&gt;
   &lt;B&gt;
    &lt;C&gt;"blah"&lt;/C&gt;
    &lt;C&gt;"blah"&lt;/C&gt;
   &lt;/B&gt;
  &lt;/A&gt;
  </code></pre>
  
  <p>I need to read this file into a dictionary something like this.</p>
  
  <pre>
  dict["A.B1.C1"] = "blah"
  dict["A.B1.C2"] = "blah"
  dict["A.B2.C1"] = "blah"
  dict["A.B2.C2"] = "blah"
  </pre>
  
  <p>But the format of the dict doesn't matter, I just want to read the all the info into the variables of Python. </p>
  
  <p>The thing is that I don't know the structure of the XML, I just want to read all the info in a dictionary.</p>
  
  <p>Is there any way to do this with Python?</p>