title: How to read xml file using python?
body: <p>I I have a xml file like this</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;Automation_Config&gt;
      &lt;Path&gt;
          &lt;Log&gt;.\SERVER.log&lt;/Log&gt;
          &lt;Flag_Path&gt;.\Flag&lt;/Flag_Path&gt;
          &lt;files&gt;.\PO&lt;/files&gt;
      &lt;/Path&gt;
  
  &lt;/Automation_Config&gt;
  </code></pre>
  
  <p>I want to read the xml file and get the element of those, and assign to variable.</p>
  
  <p>I tried this, but I can not get the element of Log.</p>
  
  <pre><code>import xml.dom.minidom
  def main ():
      Load_XML = xml.dom.minidom.parse('D:/Config.xml')
      print (Load_XML.nodeName)
      print (Load_XML.firstChild.tagName)
  
      Log = Load_XML.getElementsByTagName ("Log")
      print (Log)
  
  main()
  </code></pre>