title: python HTTP response data in XML
body: <p>I have a HTTP request Get which I know it's response data looks like </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;TestSpec xmlns="TestSpec.xsd"&gt;
    &lt;Tests&gt;
      &lt;TestCase&gt;
        &lt;TestCase&gt;abc&lt;/TestCase&gt;
      &lt;/TestCase&gt;
    &lt;/Tests&gt;
  &lt;/TestSpec&gt;
  </code></pre>
  
  <p>I am trying to retrieve it's data so I can validate, the response data which is g0</p>
  
  <pre><code>    parser = etree.HTMLParser()
      tree=etree.fromstring(g0.text.encode('utf8'), parser)
  </code></pre>
  
  <p>How can I get those data I ahve tried</p>
  
  <pre><code>    print ("\ntree= "+ str(tree.TestCase))
  </code></pre>
  
  <p>but it doesn't work</p>