title: Python 3 XML findall empty output
body: <p>I'm trying to figure out the following problem:</p>
  
  <p>I want to get the 'type' attribute of the tag (cpe-23 tags are optional and of ANY type in XML schema)</p>
  
  <pre><code>&lt;cpe-23:deprecated-by ... type="NAME_CORRECTION"/&gt;
  </code></pre>
  
  <p>Reading other questions in stackoverflow has lead me to the following code:</p>
  
  <pre><code>import xml.etree.ElementTree as ET
  tree = ET.parse(".../official-cpe-dictionary_v2.3.xml")
  root = tree.getroot()
  
  for child in root.findall('cpe-item/cpe-23:cpe23-item/cpe-23:deprecation/cpe-23:deprecated-by',
                        namespaces={'cpe-23': 'http://scap.nist.gov/schema/cpe-extension/2.3'}):
  
      print(child.attrib['name'], child.attrib['type'])
  </code></pre>
  
  <p>My problem now is that I just get an empty output and my program stops with code:0</p>
  
  <p>Any ideas on how to solve this?</p>
  
  <p>Many thanks in advance!</p>
  
  <p>Source (XML-file):</p>
  
  <pre><code>&lt;cpe-list ...&gt;
      &lt;generator&gt;
         ...
      &lt;/generator&gt;
      &lt;cpe-item name="cpe:/a:3com:tippingpoint_ips_tos:2.2.3" deprecated="true" deprecation_date="2010-12-28T17:36:02.240Z"&gt;
          &lt;title xml:lang="en-US"&gt;3Com TippingPoint IPS TOS 2.2.3&lt;/title&gt;
          &lt;cpe-23:cpe23-item name="cpe:2.3:a:3com:tippingpoint_ips_tos:2.2.3:*:*:*:*:*:*:*"&gt;
            &lt;cpe-23:deprecation date="2010-12-28T12:36:02.240-05:00"&gt;
              &lt;cpe-23:deprecated-by name="cpe:2.3:o:3com:tippingpoint_ips_tos:2.2.3:*:*:*:*:*:*:*" type="NAME_CORRECTION"/&gt;
            &lt;/cpe-23:deprecation&gt;
          &lt;/cpe-23:cpe23-item&gt;
      &lt;/cpe-item&gt;
      &lt;cpe-item ...&gt;
          ...
      &lt;/cpe-item&gt;
      ...
  &lt;/cpe-list&gt;
  </code></pre>