title: Perl XML::LibXML: how to access comment nodes
body: <p>For the life of me I can't figure out the proper code to access the comment lines in my XML file. Do I use <code>findnodes</code>, <code>find</code>, <code>getElementByTagName</code> (doubt it).</p>
  
  <p>Am I even making the correct assumption that these comment lines are accessible? I would hope so, as I know I can add a comment.</p>
  
  <p>The type number for a comment node is 8, so they must be parseable.</p>
  
  <p>Ultimately, what I want tot do is delete them.</p>
  
  <pre><code>my @nodes = $dom-&gt;findnodes("//*");
  
  foreach my $node (@nodes) {
    print $node-&gt;nodeType, "\n";
  }
  
  &lt;TT&gt;
   &lt;A&gt;xyz&lt;/A&gt;
   &lt;!-- my comment --&gt;
  &lt;/TT&gt; 
  </code></pre>