XML::LibXML::Comment(3pm)

XML::LibXML::Comment3pm

Xml::libxml comment class

Usage

  use XML::LibXML;
  # Only methods specific to Comment nodes are listed here,
  # see the XML::LibXML::Node manpage for other methods
  $node = XML::LibXML::Comment->new( $content );

Overview

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. :-)

Methods

The class inherits from XML::LibXML::Node. The documentation for Inherited methods is not listed here.

Many functions listed here are extensively documented in the DOM Level 3 specification (<http://www.w3.org/TR/DOM-Level-3-Core/>). Please refer to the specification for extensive documentation.

new
  $node = XML::LibXML::Comment->new( $content );

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

Version

2.0213

Releases

13 releases since Debian 3.0 (Woody); the text changed 12 times.

  1. 3.0
  2. 3.1
  3. 4.0
  4. 5.0
  5. 6.0
  6. 7
  7. 8
  8. 9
  9. 10
  10. 11
  11. 12
  12. 13
  13. Arch

Authors

Matt Sergeant, Christian Glahn, Petr Pajas

License

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

From perl-xml-libxml 2.0213-2 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.