1XML::Handler::CanonXMLWUrsietrerC(o3n)tributed Perl DocuXmMeLn:t:aHtainodnler::CanonXMLWriter(3)
2
3
4
6 XML::Handler::CanonXMLWriter - output XML in canonical XML format
7
9 use XML::Handler::CanonXMLWriter;
10
11 $writer = XML::Handler::CanonXMLWriter OPTIONS;
12 $parser->parse(Handler => $writer);
13
15 "XML::Handler::CanonXMLWriter" is a PerlSAX handler that will return a
16 string or write a stream of canonical XML for an XML instance and it's
17 content.
18
19 "XML::Handler::CanonXMLWriter" objects hold the options used for
20 writing the XML objects. Options can be supplied when the the object
21 is created,
22
23 $writer = new XML::Handler::CanonXMLWriter PrintComments => 1;
24
25 or modified at any time before calling the parser's `"parse()"' method:
26
27 $writer->{PrintComments} = 0;
28
30 IOHandle
31 IOHandle contains a handle for writing the canonical XML to. If an
32 IOHandle is not provided, the canonical XML string will be returned
33 from `"parse()"'.
34
35 PrintComments
36 By default comments are not written to the output. Setting comment
37 to a true value will include comments in the output.
38
40 Ken MacLeod, ken@bitsko.slc.ut.us
41
43 perl(1), PerlSAX
44
45 James Clark's Canonical XML definition
46 <http://www.jclark.com/xml/canonxml.html>
47
48
49
50perl v5.32.0 2020-07-28 XML::Handler::CanonXMLWriter(3)