title: XML error object has no attribute 'cssselect'
body: <p>the following does not appear to parse the xml data correctly or is doing something wrong.</p>
  
  <p>This is the code being run.</p>
  
  <p>from lxml import etree
     from lxml.etree import fromstring</p>
  
  <pre><code>if request.POST:
  
      xml = request.POST['xml'].encode('utf-8')
      parser = etree.XMLParser(ns_clean=True, recover=True, encoding='utf-8')
      h = fromstring(xml, parser=parser)
      status = h.cssselect('itagg_delivery_receipt status').text_content()
      return HttpResponse(status)
  </code></pre>
  
  <p>The error:</p>
  
  <p><strong>AttributeError: 'lxml.etree._Element' object has no attribute 'cssselect' status</strong></p>
  
  <p>This is the xml document that is being sent:</p>
  
  <pre><code> &lt;?xml version="1.1" encoding="ISO-8859-1"?&gt;
  &lt;itagg_delivery_receipt&gt;
  &lt;version&gt;1.0&lt;/version&gt;
  &lt;msisdn&gt;447889000000&lt;/msisdn&gt;
  &lt;submission_ref&gt;
  845tgrgsehg394g3hdfhhh56445y7ts6&lt;/
  submission_ref&gt;
  &lt;status&gt;Delivered&lt;/status&gt;
  &lt;reason&gt;4&lt;/reason&gt;
  &lt;timestamp&gt;20050709120945&lt;/timestamp&gt;
  &lt;retry&gt;0&lt;/retry&gt;
  &lt;/itagg_delivery_receipt&gt; 
  </code></pre>
  
  <p>I have dumped out str(h) and it looks like this  <code>&lt;element 0x7fd341e93870="" at="" itagg_delivery_receipt=""&gt;&lt;/element&gt;</code></p>