1XML::LibXML::Comment(3)User Contributed Perl DocumentatioXnML::LibXML::Comment(3)
2
3
4
6 XML::LibXML::Comment - XML::LibXML Comment Class
7
9 use XML::LibXML;
10 # Only methods specific to Comment nodes are listed here,
11 # see the XML::LibXML::Node manpage for other methods
12
13 $node = XML::LibXML::Comment->new( $content );
14
16 This class provides all functions of XML::LibXML::Text, but for comment
17 nodes. This can be done, since only the output of the node types is
18 different, but not the data structure. :-)
19
21 The class inherits from XML::LibXML::Node. The documentation for
22 Inherited methods is not listed here.
23
24 Many functions listed here are extensively documented in the DOM Level
25 3 specification (<http://www.w3.org/TR/DOM-Level-3-Core/>). Please
26 refer to the specification for extensive documentation.
27
28 new
29 $node = XML::LibXML::Comment->new( $content );
30
31 The constructor is the only provided function for this package. It
32 is required, because libxml2 treats text nodes and comment nodes
33 slightly differently.
34
36 Matt Sergeant, Christian Glahn, Petr Pajas
37
39 2.0205
40
42 2001-2007, AxKit.com Ltd.
43
44 2002-2006, Christian Glahn.
45
46 2006-2009, Petr Pajas.
47
49 This program is free software; you can redistribute it and/or modify it
50 under the same terms as Perl itself.
51
52
53
54perl v5.32.0 2020-07-28 XML::LibXML::Comment(3)