title: Can't find children leafs using elementtree.find()
body: <p>I want to output the text "Det norske Arbeiderparti" from the last line of the xml file below. I am using this code but I get the error shown:</p>
  
  <pre><code>import xml.etree.ElementTree as ET
  tree = ET.parse('wiki.xml')
  root = tree.getroot()
  print(root.find('{http://www.mediawiki.org/xml/export-0.10/}title').text)
  
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  AttributeError: 'NoneType' object has no attribute 'text'
  </code></pre>
  
  <p>This is the XML:</p>
  
  <pre><code>&lt;mediawiki xmlns="http://www.mediawiki.org/xml/export-0.10/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.mediawiki.org/xml/export-0.10/ http://www.mediawiki.org/xml/export-0.10.xsd" version="0.10" xml:lang="nb"&gt;
    &lt;siteinfo&gt;
      &lt;sitename&gt;Wikipedia&lt;/sitename&gt;
      &lt;dbname&gt;nowiki&lt;/dbname&gt;
      &lt;base&gt;https://no.wikipedia.org/wiki/Portal:Forside&lt;/base&gt;
      &lt;generator&gt;MediaWiki 1.31.0-wmf.12&lt;/generator&gt;
      &lt;case&gt;first-letter&lt;/case&gt;
      &lt;namespaces&gt;
        &lt;namespace key="-2" case="first-letter"&gt;Medium&lt;/namespace&gt;
        &lt;namespace key="-1" case="first-letter"&gt;Spesial&lt;/namespace&gt;
        &lt;namespace key="0" case="first-letter" /&gt;
        &lt;namespace key="1" case="first-letter"&gt;Diskusjon&lt;/namespace&gt;
        &lt;namespace key="2" case="first-letter"&gt;Bruker&lt;/namespace&gt;
        &lt;namespace key="3" case="first-letter"&gt;Brukerdiskusjon&lt;/namespace&gt;
        &lt;namespace key="4" case="first-letter"&gt;Wikipedia&lt;/namespace&gt;
        &lt;namespace key="5" case="first-letter"&gt;Wikipedia-diskusjon&lt;/namespace&gt;
        &lt;namespace key="6" case="first-letter"&gt;Fil&lt;/namespace&gt;
        &lt;namespace key="7" case="first-letter"&gt;Fildiskusjon&lt;/namespace&gt;
        &lt;namespace key="8" case="first-letter"&gt;MediaWiki&lt;/namespace&gt;
        &lt;namespace key="9" case="first-letter"&gt;MediaWiki-diskusjon&lt;/namespace&gt;
        &lt;namespace key="10" case="first-letter"&gt;Mal&lt;/namespace&gt;
        &lt;namespace key="11" case="first-letter"&gt;Maldiskusjon&lt;/namespace&gt;
        &lt;namespace key="12" case="first-letter"&gt;Hjelp&lt;/namespace&gt;
        &lt;namespace key="13" case="first-letter"&gt;Hjelpdiskusjon&lt;/namespace&gt;
        &lt;namespace key="14" case="first-letter"&gt;Kategori&lt;/namespace&gt;
        &lt;namespace key="15" case="first-letter"&gt;Kategoridiskusjon&lt;/namespace&gt;
        &lt;namespace key="100" case="first-letter"&gt;Portal&lt;/namespace&gt;
        &lt;namespace key="101" case="first-letter"&gt;Portaldiskusjon&lt;/namespace&gt;
        &lt;namespace key="828" case="first-letter"&gt;Modul&lt;/namespace&gt;
        &lt;namespace key="829" case="first-letter"&gt;Moduldiskusjon&lt;/namespace&gt;
        &lt;namespace key="2300" case="first-letter"&gt;Gadget&lt;/namespace&gt;
        &lt;namespace key="2301" case="first-letter"&gt;Gadget talk&lt;/namespace&gt;
        &lt;namespace key="2302" case="case-sensitive"&gt;Gadget definition&lt;/namespace&gt;
        &lt;namespace key="2303" case="case-sensitive"&gt;Gadget definition talk&lt;/namespace&gt;
        &lt;namespace key="2600" case="first-letter"&gt;Sak&lt;/namespace&gt;
      &lt;/namespaces&gt;
    &lt;/siteinfo&gt;
    &lt;page&gt;
      &lt;title&gt;Det norske Arbeiderparti&lt;/title&gt;
  </code></pre>
  
  <p>I know my search name is correct because this code yields the right name:</p>
  
  <pre><code>print(root.getchildren()[1].getchildren())
  
  &lt;Element '{http://www.mediawiki.org/xml/export-0.10/}title' at 0x1101ff188&gt;
  </code></pre>
  
  <p>The only way I can actually find what I want is to use this code, but I can't use that for the entire xml as the names are in different places:</p>
  
  <pre><code>print(root.getchildren()[1].find('{http://www.mediawiki.org/xml/export-0.10/}title').text)
  
  Det norske Arbeiderparti
  </code></pre>