title: xml.etree.ElementTree findall
body: <p>I am parsing an XML <a href="https://s137-en.ogame.gameforge.com/api/players.xml" rel="nofollow">file</a> using <strong>xml.etree.ElementTree</strong>. I want to find elements based off the name attribute.</p>
  
  <pre><code>fnd = root.findall("./player[@name='Pqp239']")
  </code></pre>
  
  <p>But, this only will find exact matches for the name. How would you go about finding elements whose name contains a part of a name? So it would be something like this</p>
  
  <pre><code>fnd = root.findall("./player[@name='rob']")
  </code></pre>
  
  <p>would find all elemnts whose name contain rob like these:</p>
  
  <pre><code>Rob
  Robert
  chifforobe
  </code></pre>