XML::Grove::AsCanonXML(3pm)

XML::Grove::AsCanonXML3pm

Output xml objects in canonical xml

Usage

 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);

Overview

"XML::Grove::AsCanonXML" will return a string or write a stream of canonical XML for an XML object and it's content (if any).

"XML::Grove::AsCanonXML" objects hold the options used for writing the XML 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 XML object by setting the option directly in the `$writer' hash.

Options

Comments

By default comments are not written to the output. Setting comment to TRUE will include comments in the output.

Releases

13 releases since Debian 2.2 (Potato); the text changed 6 times.

  1. 2.2
  2. 3.0
  3. 3.1–5.0
  4. 6.0–9
  5. 10
  6. 11
  7. 12–13

Author

Ken MacLeod, [email protected]

From libxml-grove-perl 0.46alpha-14 in Debian 13 (Trixie). Parsed by carta from the page's man source.