SYNOPSIS

 use XML::Handler::CanonXMLWriter;

 $writer = XML::Handler::CanonXMLWriter OPTIONS;
 $parser->parse(Handler => $writer);

DESCRIPTION

\*(C`XML::Handler::CanonXMLWriter\*(C' is a PerlSAX handler that will return a string or write a stream of canonical \s-1XML\s0 for an \s-1XML\s0 instance and it's content.

\*(C`XML::Handler::CanonXMLWriter\*(C' objects hold the options used for writing the \s-1XML\s0 objects. Options can be supplied when the the object is created,

$writer = new XML::Handler::CanonXMLWriter PrintComments => 1;

or modified at any time before calling the parser's `\*(C`parse()\*(C'' method:

$writer->{PrintComments} = 0;

OPTIONS

IOHandle

IOHandle contains a handle for writing the canonical \s-1XML\s0 to. If an IOHandle is not provided, the canonical \s-1XML\s0 string will be returned from `\*(C`parse()\*(C''.

PrintComments

By default comments are not written to the output. Setting comment to a true value will include comments in the output.

AUTHOR

Ken MacLeod, [email protected]

RELATED TO XML::Handler::CanonXMLWriter…

perl\|(1), PerlSAX

James Clark's Canonical \s-1XML\s0 definition <http://www.jclark.com/xml/canonxml.html>