title: Python ElementTree myroot.findall()
body: <p>I'm working with a XML file with Python ElementTree.
  My file is like that :</p>
  
  <pre><code>&lt;a expr="bla" para="1"/&gt;
  &lt;a expr="bla" para="1"&gt;
    &lt;b expr="bli" para="2"/&gt;
  &lt;a exp="bla" para="1"/&gt;
  ...
  </code></pre>
  
  <p>I want to print expr, no matters if it's a or b.
  It should be like that :</p>
  
  <pre><code>expr = "bla"
  expr = "bla"
  expr = "bli"
  expr = "bla"
  </code></pre>
  
  <p>I wrote this code :</p>
  
  <pre><code>for type_tag in myroot.findall('a'):
      expression = type_tag.get('expr')
      print("expr = ", expression)
  </code></pre>
  
  <p>but I don't know how to improve it to have the b too, at the right position.</p>
  
  <p>Thanks in advance for your help,</p>