title: ElementTree attrib is empty
body: <p>I have XML document.  </p>
  
  <pre><code>&lt;idmclient&gt;
      &lt;version build="" major="1" minor="1" sprint="15" /&gt;  
  &lt;/idmclient&gt;
  </code></pre>
  
  <p>And python code </p>
  
  <pre><code>  import xml.etree.ElementTree as ET
  from xml.etree.ElementTree import parse, Element, SubElement, ElementTree
  import sys
  file = "C://inetpub//idmclient//version.xml";
  tree = parse(file)
  elem = tree.getroot()
  version = SubElement(elem, "version")
  print (version.attrib)
  </code></pre>
  
  <p>it's print {}. But i have 4 attributes. After I want to write in build any number and save, but now, when i write and save it looks like this  </p>
  
  <pre><code>  &lt;idmclient&gt;
      &lt;version build="" major="1" minor="1" sprint="15" /&gt;
  &lt;version build="666" /&gt;&lt;/idmclient&gt;    
  </code></pre>
  
  <p>Thanks.</p>