XML::G...nonXML(3pm)
π NAME π
XML::Grove::AsCanonXML β bestie, this one outputs XML objects in canonical XML. Periodt. β¨
π¦ SYNOPSIS π¦
Okay so here's the whole vibe, no cap:
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);
Likeβ¦ pick your lane, both slay π
πΈ DESCRIPTION πΈ
So XML::Grove::AsCanonXML will hand you back a string or write a stream of canonical XML for an XML object and it's content (if any). It's giving β¨ output era β¨.
XML::Grove::AsCanonXML objects are literally just little containers holding the options used for writing the XML objects. You can supply those options when the object gets created:
$writer = XML::Grove::AsCanonXML->new( Comments => 1 );
β¦or you can change them at any time before writing an XML object by setting the option directly in the $writer hash. So flexible of her π«Ά
β¨ OPTIONS β¨
Commentsβ okay so by default, comments are not written to the output π. Setting comment to TRUE will include comments in the output. That's it, that's the whole toggle, iconic π
π AUTHOR π
Ken MacLeod, ken@bitsko.slc.ut.us π
π₯ SEE ALSO π₯
perl(1),XML::Parser(3),XML::Grove(3).- James Clark's Canonical XML definition β http://www.jclark.com/xml/canonxml.html π§
and that's the whole page, bestie!! this was perl v5.36.0, dated 2022-11-29, from the XML::G...nonXML(3pm) manual β love that for us ππ byeee β¨
π¦ where this page comes from
- debian bookworm: libxml-grove-perl 0.46alpha-14 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libxml-grove-perl 0.46alpha-14 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libxml-grove-perl 0.46alpha-14 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libxml-grove-perl 0.46alpha-14 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libxml-grove-perl 0.46alpha-14 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms