title: How to parse XML file from European Central Bank with Python
body: <p>I am trying to parse an XML file from the European Central Bank with the Euro rates.
  Unfortunatly I get stuck with parsing the XML file. When I remove the difficult part (everything related with "gesmes") I have no problem iterating through the "Cube" elements but I am not able to deal with the "gesmes" part of the xml file.
  I used the ElementTree API for this.</p>
  
  <p>Sample XML file: <a href="http://www.ecb.int/stats/eurofxref/eurofxref-daily.xml" rel="nofollow">http://www.ecb.int/stats/eurofxref/eurofxref-daily.xml</a></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;gesmes:Envelope xmlns:gesmes="http://www.gesmes.org/xml/2002-08-01" xmlns="http://www.ecb.int/vocabulary/2002-08-01/eurofxref"&gt;
      &lt;gesmes:subject&gt;Reference rates&lt;/gesmes:subject&gt;
      &lt;gesmes:Sender&gt;
          &lt;gesmes:name&gt;European Central Bank&lt;/gesmes:name&gt;
      &lt;/gesmes:Sender&gt;
      &lt;Cube&gt;
          &lt;Cube time='2013-06-21'&gt;
              &lt;Cube currency='USD' rate='1.3180'/&gt;
              &lt;Cube currency='JPY' rate='128.66'/&gt;
              &lt;Cube currency='BGN' rate='1.9558'/&gt;
              &lt;Cube currency='CZK' rate='25.825'/&gt;
              &lt;Cube currency='DKK' rate='7.4582'/&gt;
              &lt;Cube currency='GBP' rate='0.85330'/&gt;
              &lt;Cube currency='HUF' rate='298.87'/&gt;
              &lt;Cube currency='LTL' rate='3.4528'/&gt;
              &lt;Cube currency='LVL' rate='0.7016'/&gt;
              &lt;Cube currency='PLN' rate='4.3289'/&gt;
              &lt;Cube currency='RON' rate='4.5350'/&gt;
              &lt;Cube currency='SEK' rate='8.6927'/&gt;
              &lt;Cube currency='CHF' rate='1.2257'/&gt;
              &lt;Cube currency='NOK' rate='7.9090'/&gt;
              &lt;Cube currency='HRK' rate='7.4905'/&gt;
              &lt;Cube currency='RUB' rate='43.2260'/&gt;
              &lt;Cube currency='TRY' rate='2.5515'/&gt;
              &lt;Cube currency='AUD' rate='1.4296'/&gt;
              &lt;Cube currency='BRL' rate='2.9737'/&gt;
              &lt;Cube currency='CAD' rate='1.3705'/&gt;
              &lt;Cube currency='CNY' rate='8.0832'/&gt;
              &lt;Cube currency='HKD' rate='10.2239'/&gt;
              &lt;Cube currency='IDR' rate='13088.24'/&gt;
              &lt;Cube currency='ILS' rate='4.7891'/&gt;
              &lt;Cube currency='INR' rate='78.1200'/&gt;
              &lt;Cube currency='KRW' rate='1521.52'/&gt;
              &lt;Cube currency='MXN' rate='17.5558'/&gt;
              &lt;Cube currency='MYR' rate='4.2222'/&gt;
              &lt;Cube currency='NZD' rate='1.7004'/&gt;
              &lt;Cube currency='PHP' rate='57.707'/&gt;
              &lt;Cube currency='SGD' rate='1.6790'/&gt;
              &lt;Cube currency='THB' rate='41.003'/&gt;
              &lt;Cube currency='ZAR' rate='13.4906'/&gt;
          &lt;/Cube&gt;
      &lt;/Cube&gt;
  &lt;/gesmes:Envelope&gt;
  </code></pre>
  
  <p>What I want is to search for a specific currency (from users input) and get the rate back so I can use the result.</p>