title: domparser remove node not working
body: <p>Below  is the code snippet: </p>
  
  <pre><code>var tmpl = "&lt;book&gt;&lt;auth&gt; &lt;/auth&gt; &lt;price&gt; &lt;/price&gt; &lt;/book&gt;";
  var bkTmpl  = parser.parseFromString(tmpl,'text/xml');
  var bk = bkTmpl.cloneNode();
  </code></pre>
  
  <p>And i am removing the child 'price' as below. Both Try1 &amp; Try2 is not working</p>
  
  <p>Try1: </p>
  
  <pre><code>var bkprice = tmpl.getElementsByTagName('price')[0];
  bkTmpl .documentElement.removeChild(bkprice);
  </code></pre>
  
  <p>Try2</p>
  
  <pre><code>var bkprice = tmpl.getElementsByTagName('price');
  bkTmpl.documentElement.removeChild(bkprice);
  </code></pre>
  
  <p>For Try1 it throws error =>
  "Node was not found"</p>
  
  <p>For Try2 it give =>
  Could not convert JavaS...DOMElement.removeChild]</p>
  
  <p>Google few option but i see only removeChild to remove it. However when I use document.getElementById  &amp; use removeChild function it does not complain. Only reason I am using js variable (var tmpl) as I wanted to use snippet of xml as part of javascript that can be changed in future as ajax call &amp; hence do not want to be part of HTML. I saw on firebug for both Try1 &amp; Try2 "price" element is populating</p>