title: Retrieve multiple xml items in a loop with elementtree
body: <p>I'm trying to loop over an xml file with elementtree. The file looks a bit like this:</p>
  
  <pre><code>&lt;items&gt;
    &lt;item&gt;
      &lt;name&gt;Blah&lt;/name&gt;
      &lt;price&gt;1234&lt;/price&gt;
    &lt;/item&gt;
    &lt;item&gt;
      &lt;name&gt;Something&lt;/name&gt;
      &lt;price&gt;2345&lt;/price&gt;
    &lt;/item&gt;
  &lt;/items&gt;
  </code></pre>
  
  <p>After reading this with elementtree, I can do this:</p>
  
  <pre><code>for element in doc.findall('/items/item/name):
    print element.text
  </code></pre>
  
  <p>But with one loop, I'd like to get the price too... Something like this...</p>
  
  <pre><code>for element in doc.findall('/items/item'):
    print element.name.text
    print element.price.text
  </code></pre>
  
  <p>...but I can't. Not sure what's next - do I need to do another "find" per "element"?</p>
  
  <p>Many thanks for any help!</p>