title: Can't get the element value of an xml file with python
body: <p>I am working on a program which has to parse some values. The xml is given below:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;annotation&gt;
     &lt;folder&gt;leaf_Haritaki&lt;/folder&gt;
     &lt;filename&gt;Haritaki_010001.png&lt;/filename&gt;
     &lt;segmented&gt;0&lt;/segmented&gt;
     &lt;size&gt;
        &lt;width&gt;1456&lt;/width&gt;
        &lt;height&gt;2592&lt;/height&gt;
        &lt;depth&gt;3&lt;/depth&gt;
     &lt;/size&gt;
     &lt;object&gt;
        &lt;name&gt;Haritaki&lt;/name&gt;
        &lt;pose&gt;Unspecified&lt;/pose&gt;
        &lt;truncated&gt;0&lt;/truncated&gt;
        &lt;difficult&gt;0&lt;/difficult&gt;
        &lt;bndbox&gt;
           &lt;xmin&gt;316&lt;/xmin&gt;
           &lt;ymin&gt;301&lt;/ymin&gt;
           &lt;xmax&gt;1179&lt;/xmax&gt;
           &lt;ymax&gt;1964&lt;/ymax&gt;
        &lt;/bndbox&gt;
     &lt;/object&gt;
  &lt;/annotation&gt;
  </code></pre>
  
  <p>I need to parse the values of <code>&lt;xmin&gt;</code> <code>&lt;ymin&gt;</code> <code>&lt;xmax&gt;</code> <code>&lt;ymax&gt;</code></p>
  
  <p>I have tried this code. But I didn't find any value.</p>
  
  <pre><code>import xml.etree.ElementTree as ET
  tree = ET.parse('Haritaki_010001.xml')
  root = tree.getroot()
  
  for country in root.findall('bndbox'):
      name = float(country.find('xmin').text)
      print(name)
  </code></pre>
  
  <p>It provides a blank output. Would anyone please get a solution for me? </p>