title: Iterate through XML to get all child nodes text value
body: <p>i have a xml with following data. i need to get value of  and all other attribute. i return a python code there i get only first driver value.</p>
  
  <p>My xml :</p>
  
  <pre><code>&lt;volume name="sp" type="span" operation="create"&gt;
      &lt;driver&gt;HDD1&lt;/driver&gt;
      &lt;driver&gt;HDD2&lt;/driver&gt;
      &lt;driver&gt;HDD3&lt;/driver&gt;
      &lt;driver&gt;HDD4&lt;/driver&gt;
  &lt;/volume&gt;
  </code></pre>
  
  <p>My script:</p>
  
  <pre><code>import xml.etree.ElementTree as ET
  doc = ET.parse("vol.xml")
  root = doc.getroot() #Returns the root element for this tree.
  root.keys()          #Returns the elements attribute names as a list. The names are returned in an arbitrary order
  root.attrib["name"]
  root.attrib["type"]
  root.attrib["operation"]
  
  print root.get("name")
  print root.get("type")
  print root.get("operation")
  
  for child in root:
      #print child.tag, child.attrib
      print root[0].text
  </code></pre>
  
  <p>My output:</p>
  
  <pre><code>    sr-query:~# python volume_check.py aaa
      sp
      span
      create
      HDD1
     sr-queryC:~#
  </code></pre>
  
  <p>I am not get <code>HDD2</code>, <code>HDD3</code> and <code>HDD4</code>. How to itirate through this xml to get all values? Any optimized way? I think any for loop can do that but not familiar with Python.</p>