title: XML removeChild, but out output has a blank row
body: <p>Simple removeChild test, although the xml line is removed, it maintains an empty blank row, how come? Btw - my source xml file does have indents, however even when I remove them I get the same result.  So what's the point of being able to removeChild row if it still retains a blank space?</p>
  
  <p>Is there a way to re-format the resulting xml lines prior to outputing it to the file?</p>
  
  <pre><code>foreach my $XYZ ($doc-&gt;findnodes("//EE1"))
  {
   my $library = $XYZ-&gt;parentNode;
   $library-&gt;removeChild($XYZ);
  } 
  print {$FH} $doc-&gt;toString(0);
  
  
  
  RESULT IN OUTPUT FILE:
  &lt;?xml version="1.0"?&gt;
  &lt;TopTag&gt;
    &lt;AA1&gt;ZNY&lt;/AA1&gt;
    &lt;AA2&gt;111&lt;/AA2&gt;
    &lt;BB1&gt;
      &lt;CC1&gt;ZNY&lt;/CC1&gt;
      &lt;CC2&gt;
        &lt;DD1&gt;
                       &lt;-----blank line remains
          &lt;EE2&gt;2000&lt;/EE2&gt;
        &lt;/DD1&gt;
        &lt;DD1&gt;
                       &lt;-----blank line remains
          &lt;EE2&gt;5000&lt;/EE2&gt;
        &lt;/DD1&gt;
      &lt;/CC2&gt;
    &lt;/BB1&gt;
    &lt;AA1&gt;ZNY2&lt;/AA1&gt;
    &lt;AA2&gt;2&lt;/AA2&gt;
  &lt;/TopTag&gt;
  </code></pre>