XML::LibXML Comment Class

Synopsis

use XML::LibXML;
# Only methods specific to Comment nodes listed here,
# see XML::LibXML::Node manpage for other methods

This class provides all functions of XML::LibXML::Text, but for comment nodes. This can be done, since only the output of the node types is different, but not the data structure. :-)
new 	

$node = XML::LibXML::Comment( $content );

The constructor is the only provided function for this package. It is required, because libxml2 treats text nodes and comment nodes slightly differently.