XML::Ca...lizeXML(3)
β¨ NAME β¨
okay bestie, this is the User Contributed Perl Documentation page for XML::CanonicalizeXML β headers show it as XML::Ca...lizeXML(3) because truncation is a thing π
. The actual name is XML::CanonicalizeXML, and it's a Perl extension for inclusive (1.0 and 1.1) and exclusive canonicalization of XML using libxml2. no cap, that's the whole vibe. π¦
π SYNOPSIS π
use XML::CanonicalizeXML;
π DESCRIPTION π
okay so the original literally labels this useage: β we're keeping that spelling exactly, because details are sacred. The call signature is:
canonicalize (xml, xpath, namespace, exclusive, with_comments)
Here's the group-chat breakdown, bestie:
xmlis the xml string to be canonicalized. πxpathis a string containing an xpath statement to the part of the xml document to be canonicalized, and it can optionally be null. See the examples provided with libxml2 for further details.namespaceis a string containing a list of namespaces to be included (only used in exclusive canonicalization).exclusiveis an int to specify exclusive canonicalization:1= exclusive,0= non-exclusive,2= exclusive v1.1.with_commentsis an int specifying whether comments are included in the canonicalized xml (0= comments not included).
the function returns a string containing the canonicalized xml. slay. β¨
π«Ά EXPORT π«Ά
None by default. iconic minimalism, honestly. π
π SEE ALSO π
https://github.com/sjzasada/XML-CanonicalizeXMLfor GitHub projecthttp://www.xmlsoft.orgfor full details of libxml2
π AUTHOR π
Stefan Zasada, <sjz@zasada.co.uk> with thanks to Mark Mc Keown. π«Ά
π COPYRIGHT AND LICENSE π
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.3 or, at your option, any later version of Perl 5 you may have available.
And the footer vibes: this page is from perl v5.42.2, dated 2025-06-30, and the header/manual name is XML::Ca...lizeXML(3) β that's the whole sign-off, bestie. π
π¦ where this page comes from
- alpine 3.24: perl-xml-canonicalizexml-doc 0.10-r11 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms