title: Cannot get all attributes when parsing XML file with python
body: <p>This is the XML file 'test_xml2.xml'</p>
  
  <pre><code>&lt;feed xml:lang='en'&gt;
    &lt;title&gt;HackerRank&lt;/title&gt;
    &lt;subtitle lang='en'&gt;Programming challenges&lt;/subtitle&gt;
    &lt;link rel='alternate' type='text/html' href='http://hackerrank.com/'/&gt;
    &lt;updated&gt;2013-12-25T12:00:00&lt;/updated&gt;
    &lt;entry&gt;
      &lt;author gender='male'&gt;Harsh&lt;/author&gt;
      &lt;question type='hard'&gt;XML 1&lt;/question&gt;
      &lt;description type='text'&gt;This is related to XML parsing&lt;/description&gt;
    &lt;/entry&gt;
  &lt;/feed&gt;
  </code></pre>
  
  <p>It actually has 8 attributes.</p>
  
  <p>But with my code</p>
  
  <pre><code>import xml.etree.ElementTree as etree
  
  count = 0
  xml = 'test_xml2.xml'
  tree = etree.parse(xml)
  root = tree.getroot()
  for item in root:
      count += len(item.attrib)
      print item.keys()
  print count
  </code></pre>
  
  <p>I get result '4'.</p>
  
  <blockquote>
    <p>Could someone please tell me what's going wrong?</p>
  </blockquote>