XML::XSS::Comment - XML::XSS comment stylesheet rule
version 0.3.5
use XML::XSS; my $xss = XML::XSS->new; my $cmt_style = $xss->comment; $cmt_style->set_filter( sub { s/^/#/gm; $_ } ); print $xss->render( '<doc><!-- foo -->yadah yadah</doc>' );
A XML::XSS rule that matches against the comment nodes of a document to be rendered.
XML::XSS
For a document, the displayed attributes follow the template:
pre [text] post
Same attribute behaviors as in XML::XSS::Element.
XML::XSS::Element
Same attribute behaviors as in XML::XSS::Text.
XML::XSS::Text
Yanick Champoux <yanick@cpan.org>
This software is copyright (c) 2017, 2013, 2011, 2010 by Yanick Champoux.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install XML::XSS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XML::XSS
CPAN shell
perl -MCPAN -e shell install XML::XSS
For more information on module installation, please visit the detailed CPAN module installation guide.