title: NameError during python xml parsing
body: <pre><code>&gt;&gt;&gt; stringx
  '&lt;?xml version="1.0"?&gt;&lt;data&gt;&lt;country name="Liechtenstein"&gt;&lt;rank&gt;1&lt;/rank&gt;&lt;year&gt;2008&lt;/year&gt;&lt;gdppc&gt;141100&lt;/gdppc&gt;&lt;neighbor name="Austria" direction="E"/&gt;&lt;neighbor name="Switzerland" direction="W"/&gt;&lt;/country&gt;&lt;country name="Singapore"&gt;&lt;rank&gt;4&lt;/rank&gt;&lt;year&gt;2011&lt;/year&gt;&lt;gdppc&gt;59900&lt;/gdppc&gt;&lt;neighbor name="Malaysia" direction="N"/&gt;&lt;/country&gt;&lt;country name="Panama"&gt;&lt;rank&gt;68&lt;/rank&gt;&lt;year&gt;2011&lt;/year&gt;&lt;gdppc&gt;13600&lt;/gdppc&gt;&lt;neighbor name="Costa Rica" direction="W"/&gt;&lt;neighbor name="Colombia" direction="E"/&gt;&lt;/country&gt;&lt;/data&gt;'
  &gt;&gt;&gt;
  &gt;&gt;&gt;
  &gt;&gt;&gt; e = xml.etree.ElementTree.fromstring(stringx)
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  NameError: name 'xml' is not defined
  </code></pre>
  
  <p>Can someone suggest what am I missing here? is it the xml code or the way I am trying to parse?</p>