title: Parse all the xml files in a directory one by one using ElementTree
body: <p>I'm parsing XML in python by ElementTree</p>
  
  <pre><code>import xml.etree.ElementTree as ET 
  tree = ET.parse('try.xml')
  root = tree.getroot()
  </code></pre>
  
  <p>I wish to parse all the 'xml' files in a given directory. The user should enter only the directory name and I should be able to loop through all the files in directory and parse them one by one. Can someone tell me the approach. I'm using Linux. </p>