title: perl + DOM + use XML::LibXML + how to remove xml version title from XML file? with DOM
body: <p>I create the following XML file,  by perl script (Showing down) , using XML::LibXML:</p>
  
  <pre><code> more test.xml 
  
   &lt;?xml version="1.0"?&gt;
   &lt;books&gt;
   &lt;computer/&gt;
   &lt;/books&gt;
  </code></pre>
  
  <p>My question: how to remove "xml version title": </p>
  
  <pre><code>      &lt;?xml version="1.0"?&gt;
  </code></pre>
  
  <p>from the test.xml file? With DOM commands in the perl script? </p>
  
  <p>in order to get only the follwoing lines in the text.xml file:</p>
  
  <pre><code> &lt;books&gt;
   &lt;computer/&gt;
   &lt;/books&gt;
  </code></pre>
  
  <p>Yael</p>
  
  #
  
  <p>the perl script:</p>
  
  <pre><code>#!/usr/bin/perl
  
  use strict;
  use warnings;
  use XML::LibXML;
  
  my $doc  = XML::LibXML::Document-&gt;new;  
  my $root = $doc-&gt;createElement('books');
  $doc-&gt;setDocumentElement($root);
  
  my $computer = $doc-&gt;createElement('computer');
  $root-&gt;appendChild($computer);
  $doc-&gt;toFile('/var/tmp/test.xml'); 
  </code></pre>