XML::Ca...lizeXML(3)

πŸ“¦ version 0.10, in alpine 3.24

✨ 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:

  • xml is the xml string to be canonicalized. πŸ’–
  • xpath is 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.
  • namespace is a string containing a list of namespaces to be included (only used in exclusive canonicalization).
  • exclusive is an int to specify exclusive canonicalization: 1 = exclusive, 0 = non-exclusive, 2 = exclusive v1.1.
  • with_comments is 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 🌈

πŸ‘‘ AUTHOR πŸ‘‘

Stefan Zasada, <sjz@zasada.co.uk> with thanks to Mark Mc Keown. 🫢

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