SRU::Utils::XML(3pm)
β¨ SRU::Utils::XML β¨
okay bestie, so this is the SRU::Utils::XML page β it lives in the User Contributed Perl Documentation, and it's literally just a lil bundle of XML utility functions for SRU. tiny page, big slay. π
πΈ SYNOPSIS πΈ
use SRU::Utils::XML qw( escape );
return escape( $text );
like, that's the whole vibe. import escape, call it, done. no cap. β¨
π¦ DESCRIPTION π¦
This is a set of utility functions for use with XML data. that's it, that's the description, she's concise and she's iconic. π
π METHODS π
π element( $tag, $text )
Creates an xml element named $tag containing escaped data ($text).
so it builds you the element and it does the escaping for you. safety first, bestie. π«Ά
π elementNoEscape( $tag, $text )
Similar to element, except that $text is not escaped.
β οΈ okay so this one is the wild child β it's just likeelementbut it does not escape$text. the escaping is skipped entirely. that's the whole difference, and it's the whole point. use accordingly. π
π escape( $text )
Does minimal escaping on $text.
note the word minimal β that's the actual documented behaviour, don't go expecting maximal anything. π
π stylesheet( $uri )
A shortcut method to create an xml-stylesheet declaration.
one lil call, one whole xml-stylesheet declaration. convenience queen. ππΈ
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2013 by Ed Summers.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
like, free free. do whatever the Perl 5 terms let you do. periodt. π
and that's the page, bestie!! π written for perl v5.34.0, dated 2022-06-17, and it's SRU::Utils::XML in the User Contributed Perl Documentation β mwah, love that for us. bye!! π¦β¨π
π¦ where this page comes from
- debian bookworm: libsru-perl 1.01-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libsru-perl 1.01-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libsru-perl 1.01-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libsru-perl 1.01-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libsru-perl 1.01-3 Β· 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