title: How to flatten XML file in Python
body: <p>Is there a library or mechanism I can use to flatten the XML file?</p>
  
  <p>Existing:</p>
  
  <pre><code>&lt;A&gt;
      &lt;B&gt;
          &lt;ConnectionType&gt;a&lt;/ConnectionType&gt;
          &lt;StartTime&gt;00:00:00&lt;/StartTime&gt;
          &lt;EndTime&gt;00:00:00&lt;/EndTime&gt;
          &lt;UseDataDictionary&gt;N&lt;/UseDataDictionary&gt;
  </code></pre>
  
  <p>Desired:</p>
  
  <pre><code>A.B.ConnectionType = a
  A.B.StartTime = 00:00:00
  A.B.EndTime = 00:00:00
  A.B.UseDataDictionary = N
  </code></pre>