SRU::Utils::XML(3pm)

πŸ“¦
version 1.01 Β· 2 versions
  • 1.01 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 1.01 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ 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 like element but 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. πŸ‘‘πŸŒΈ


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