title: Reading and storing XML data in arrays
body: <p>Sorry if this question is stupid but I can't seem to get my way through it. I have a .xml file which looks like:</p>
  
  <hr>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;tags&gt;
    &lt;row Id="1" TagName="bayesian" Count="1342" ExcerptPostId="20258" WikiPostId="20257" /&gt;
    &lt;row Id="2" TagName="prior" Count="168" ExcerptPostId="62158" WikiPostId="62157" /&gt;
    &lt;row Id="3" TagName="elicitation" Count="6" /&gt;
    &lt;row Id="4" TagName="normality" Count="191" ExcerptPostId="67815" WikiPostId="67814" /&gt;
    &lt;row Id="5" TagName="open-source" Count="13" /&gt;
    &lt;row Id="6" TagName="distributions" Count="1880" ExcerptPostId="8046" WikiPostId="8045" /&gt;
    &lt;row Id="9" TagName="machine-learning" Count="2564" ExcerptPostId="9066" WikiPostId="9065" /&gt;
    &lt;row Id="10" TagName="dataset" Count="514" ExcerptPostId="20490" WikiPostId="20489" /&gt;
    &lt;row Id="11" TagName="sample" Count="219" ExcerptPostId="28276" WikiPostId="28275" /&gt;
    &lt;row Id="12" TagName="population" Count="120" ExcerptPostId="69287" WikiPostId="69286" /&gt;
    &lt;row Id="15" TagName="measurement" Count="97" ExcerptPostId="66319" WikiPostId="66318" /&gt;
    &lt;row Id="16" TagName="scales" Count="157" /&gt;
  </code></pre>
  
  <hr>
  
  <p>All I need to do is to read this .xml file and store the data in arrays so that I can analyze that. I do the following steps;</p>
  
  <pre class="lang-python prettyprint-override"><code>import xml.etree.ElementTree as ET
  tree = ET.parse('Tags.xml')
  root = tree.getroot()
  
  print root
  &lt;Element 'tags' at 0x10365d810&gt;
  In [37]: root.attrib
  Out[37]: {}
  
  root.getchildren
  Out[38]: &lt;bound method Element.getchildren of &lt;Element 'tags' at 0x10365d810&gt;&gt;
  
  In [39]: root.getiterator
  Out[39]: &lt;bound method Element.getiterator of &lt;Element 'tags' at 0x10365d810&gt;&gt;
  
  In [40]: root.items
  Out[40]: &lt;bound method Element.items of &lt;Element 'tags' at 0x10365d810&gt;&gt;
  
  In [41]: root.keys
  Out[41]: &lt;bound method Element.keys of &lt;Element 'tags' at 0x10365d810&gt;&gt;
  </code></pre>
  
  <p>Somehow, I can't find the step to oread the columns.
  Thanks for help, I am very new with Python and XML
  Prakash</p>