title: Unable to parse XML file with python.Want to remove a line from python file for it .Help me to remove the line
body: <p>hello I am using etree for the parsing the xml file.I am having a problem parsing a xml file.Below are details.</p>
  
  <pre><code>&lt;niktoscan .................................... &gt;#don't want to remove this line
  &lt;scandetails&gt;
  data 
  &lt;/scandetials&gt;
  &lt;niktoscan ....................................&gt; #line 1 to remove
  &lt;scandetails&gt;
  data
  &lt;/scandetials&gt;
   &lt;niktoscan ....................................&gt; #line 2 to remove
  &lt;scandetails&gt;
  data
  &lt;/scandetials&gt;
  &lt;/niktoscan&gt;
  </code></pre>
  
  <p>As you can see in above code niktoscan is coming again without closing tag.What i want is to remove the niktoscans lines between the start and end leaving only first niktoscan tag.
  I am confuse how to remove the niktoscan lines. Help me on this ploblem with python.</p>