title: Reading and storing xml data in python variables
body: <p>I have an XML like this:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;Server&gt;
    &lt;name&gt;johny&lt;/name&gt; 
    &lt;address&gt;statestreet&lt;/address&gt;
    &lt;city&gt;Hyderabad&lt;/city&gt; 
  &lt;/Server&gt;
  </code></pre>
  
  <p>I need to store each attribute in separate variable in code.So i am writing code like this</p>
  
  <pre><code>import xml.etree.ElementTree as et
  tree=et.parse('sample.xml')  
  root=tree.getroot()
  for i in root.findall('Server'):
      name=i.find('name').text
      address = i.find('address').text
      city = i.find('city').text
  </code></pre>
  
  <p>But it is not storing anything.Please help me</p>