Perl Diver 2.31
Main Environment Variables Perl Default Values Perl Config - Summary Perl Config - Full Installed Modules List Directory uptime Docs

Module Documentation
Details and documentation about a specific module, including version and documentation (if available). Note that while links to perldoc.com and search.cpan.org are provided, the module may be part of a larger distribution. If you reach a File Not Found page on either site, please try the parent module.

XML::Handler::CanonXMLWriter

Name XML::Handler::CanonXMLWriter
Version 0.08
Located at /usr/local/share/perl5
File /usr/local/share/perl5/XML/Handler/CanonXMLWriter.pm
Is Core No
Search CPAN for this module XML::Handler::CanonXMLWriter
Documentation XML::Handler::CanonXMLWriter
Module Details XML::Handler::CanonXMLWriter

NAME

XML::Handler::CanonXMLWriter - output XML in canonical XML format


SYNOPSIS

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


DESCRIPTION

XML::Handler::CanonXMLWriter is a PerlSAX handler that will return a string or write a stream of canonical XML for an XML instance and it's content.

XML::Handler::CanonXMLWriter objects hold the options used for writing the XML 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 `parse()' method:

    $writer->{PrintComments} = 0;


OPTIONS

IOHandle
IOHandle contains a handle for writing the canonical XML to. If an IOHandle is not provided, the canonical XML string will be returned from `parse()'.

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, ken@bitsko.slc.ut.us


SEE ALSO

perl(1), PerlSAX

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

Perl Diver brought to you by ScriptSolutions.com © 1997- 2024