SYNOPSIS

 use XML::Grove::AsCanonXML;

 # Using as_canon_xml method on XML::Grove objects:
 $string = $xml_object->as_canon_xml( OPTIONS );

 # Using an XML::Grove::AsCanonXML instance:
 $writer = XML::Grove::AsCanonXML->new( OPTIONS );

 $string = $writer->as_canon_xml($xml_object);
 $writer->as_canon_xml($xml_object, $file_handle);

DESCRIPTION

\*(C`XML::Grove::AsCanonXML\*(C' will return a string or write a stream of canonical \s-1XML\s0 for an \s-1XML\s0 object and it's content (if any).

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

$writer = XML::Grove::AsCanonXML->new( Comments => 1 );

or modified at any time before writing an \s-1XML\s0 object by setting the option directly in the `$writer' hash.

OPTIONS

Comments

By default comments are not written to the output. Setting comment to \s-1TRUE\s0 will include comments in the output.

AUTHOR

Ken MacLeod, [email protected]

RELATED TO XML::Grove::AsCanonXML…

perl\|(1), XML::Parser\|(3), XML::Grove\|(3).

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