XML::Ha...LWriter(3)

okay bestie, welcome to XML::Ha...LWriter(3) from the User Contributed Perl Documentation section β€” yes, the title is literally truncated like that, and we're obsessed πŸ’…βœ¨

✨ NAME ✨

XML::Handler::CanonXMLWriter β€” output XML in canonical XML format. no cap, that's the whole vibe πŸ’–

🌸 SYNOPSIS 🌸

use XML::Handler::CanonXMLWriter;

$writer = XML::Handler::CanonXMLWriter OPTIONS;
$parser->parse(Handler => $writer);

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so XML::Handler::CanonXMLWriter is a PerlSAX handler, and its whole thing is returning a string or writing a stream of canonical XML for an XML instance and its content ✨

XML::Handler::CanonXMLWriter objects hold the options used for writing the XML objects. You can supply options when the object is created, like this:

$writer = new XML::Handler::CanonXMLWriter PrintComments => 1;

or you can modify them at any time before calling the parser's parse() method:

$writer->{PrintComments} = 0;

πŸŽ€ OPTIONS πŸŽ€

  • IOHandle β€” contains a handle for writing the canonical XML to. If an IOHandle is not provided, the canonical XML string will be returned from parse() πŸ’–
  • PrintComments β€” by default, comments are not written to the output. Setting PrintComments to a true value will include comments in the output ✨

πŸ‘‘ AUTHOR πŸ‘‘

the icon, the legend: Ken MacLeod, ken@bitsko.slc.ut.us 🫢

🌈 SEE ALSO 🌈


and that's the whole page, bestie 🫢 the footer vibes for XML::Ha...LWriter(3) are perl v5.42.0, dated 2024-03-04 β€” iconic, periodt πŸ’–βœ¨

πŸ“¦ where this page comes from