1XML::Grove::AsCanonXML(U3s)er Contributed Perl DocumentatXiMoLn::Grove::AsCanonXML(3)
2
3
4
6 XML::Grove::AsCanonXML - output XML objects in canonical XML
7
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
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
33 Comments
34 By default comments are not written to the output. Setting comment
35 to TRUE will include comments in the output.
36
38 Ken MacLeod, ken@bitsko.slc.ut.us
39
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.28.0 1999-08-17 XML::Grove::AsCanonXML(3)