title: lxml etree xmlparser remove unwanted namespace
body: <p>I have an xml doc that I am trying to parse using Etree.lxml</p>
  
  <pre><code>&lt;Envelope xmlns="http://www.example.com/zzz/yyy"&gt;
    &lt;Header&gt;
      &lt;Version&gt;1&lt;/Version&gt;
    &lt;/Header&gt;
    &lt;Body&gt;
      some stuff
    &lt;Body&gt;
  &lt;Envelope&gt;
  </code></pre>
  
  <p>My code is:</p>
  
  <pre><code>path = "path to xml file"
  from lxml import etree as ET
  parser = ET.XMLParser(ns_clean=True)
  dom = ET.parse(path, parser)
  dom.getroot()
  </code></pre>
  
  <p>When I try to get dom.getroot() I get:</p>
  
  <pre><code>&lt;Element {http://www.example.com/zzz/yyy}Envelope at 28adacac&gt;
  </code></pre>
  
  <p>However I only want:</p>
  
  <pre><code>&lt;Element Envelope at 28adacac&gt;
  </code></pre>
  
  <p>When i do </p>
  
  <pre><code>dom.getroot().find("Body")
  </code></pre>
  
  <p>I get nothing returned. However, when I</p>
  
  <pre><code>dom.getroot().find("{http://www.example.com/zzz/yyy}Body") 
  </code></pre>
  
  <p>I get a result.</p>
  
  <p>I thought passing ns_clean=True to the parser would prevent this.</p>
  
  <p>Any ideas?</p>