1XML::Grove::AsCanonXML(U3s)er Contributed Perl DocumentatXiMoLn::Grove::AsCanonXML(3)
2
3
4

NAME

6       XML::Grove::AsCanonXML - output XML objects in canonical XML
7

SYNOPSIS

9        use XML::Grove::AsCanonXML;
10
11        # Using as_canon_xml method on XML::Grove objects:
12        $string = $xml_object->as_canon_xml( OPTIONS );
13
14        # Using an XML::Grove::AsCanonXML instance:
15        $writer = XML::Grove::AsCanonXML->new( OPTIONS );
16
17        $string = $writer->as_canon_xml($xml_object);
18        $writer->as_canon_xml($xml_object, $file_handle);
19

DESCRIPTION

21       "XML::Grove::AsCanonXML" will return a string or write a stream of
22       canonical XML for an XML object and it's content (if any).
23
24       "XML::Grove::AsCanonXML" objects hold the options used for writing the
25       XML objects.  Options can be supplied when the the object is created,
26
27           $writer = XML::Grove::AsCanonXML->new( Comments => 1 );
28
29       or modified at any time before writing an XML object by setting the
30       option directly in the `$writer' hash.
31

OPTIONS

33       Comments
34           By default comments are not written to the output.  Setting comment
35           to TRUE will include comments in the output.
36

AUTHOR

38       Ken MacLeod, ken@bitsko.slc.ut.us
39

SEE ALSO

41       perl(1), XML::Parser(3), XML::Grove(3).
42
43       James Clark's Canonical XML definition
44       <http://www.jclark.com/xml/canonxml.html>
45
46
47
48perl v5.34.0                      2021-07-23         XML::Grove::AsCanonXML(3)
Impressum