title: Python getting element value for specific element
body: <p>I am attempting to parse the below XML file but having difficulty getting a specific element value. I am trying to specify element 'Item_No_2' to get the related value <code>&lt;v&gt;2222222222&lt;/v&gt;</code> but am unable to do it using get.element('Item_No_2'). Am I using the get.element value incorrectly?</p>
  
  <p>XML File:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;?xml-stylesheet type="text/xsl" href="Data.xsl"?&gt;
  &lt;abc&gt;
    &lt;md&gt;
      &lt;mi&gt;
        &lt;datetime&gt;20160822020003&lt;/datetime&gt;
        &lt;period&gt;3600&lt;/period&gt;
        &lt;it&gt;Item_No_1&lt;/it&gt;
        &lt;it&gt;Item_No_2&lt;/it&gt;
        &lt;it&gt;Item_No_3&lt;/it&gt;
        &lt;it&gt;Item_No_4&lt;/it&gt;
        &lt;it&gt;Item_No_5&lt;/it&gt;
        &lt;it&gt;Item_No_6&lt;/it&gt;
        &lt;it&gt;Item_No_7&lt;/it&gt;
        &lt;ovalue&gt;
          &lt;v&gt;1111111111&lt;/v&gt;
          &lt;v&gt;2222222222&lt;/v&gt;
          &lt;v&gt;3333333333&lt;/v&gt;
          &lt;v&gt;4444444444&lt;/v&gt;
          &lt;v&gt;5555555555&lt;/v&gt;
          &lt;v&gt;6666666666&lt;/v&gt;
          &lt;v&gt;7777777777&lt;/v&gt;
        &lt;/ovalue&gt;
      &lt;/mi&gt;
    &lt;/md&gt;
  &lt;/abc&gt;
  </code></pre>
  
  <p>My Code:</p>
  
  <pre><code>from xml.etree.ElementTree import parse
  
  doc = parse('test.xml').getroot()
  
  for element in doc.findall('md/mi/'):
      print(element.text)
  
  for element in doc.findall('md/mi/ovalue/'):
      print(element.text)
  </code></pre>
  
  <p>The current output gets them separately but I can't seem to understand how to call a specific element value.</p>
  
  <p>Output:</p>
  
  <pre><code>20160822020003
  3600
  Item_No_1
  Item_No_2
  Item_No_3
  Item_No_4
  Item_No_5
  Item_No_6
  Item_No_7
  
  
  1111111111
  2222222222
  3333333333
  4444444444
  5555555555
  6666666666
  7777777777
  </code></pre>
  
  <p>Tried this but did not work:</p>
  
  <pre><code>for element in doc.findall('md/mi/ovalue/'):
      print(element.get('Item_No_1'))
  </code></pre>