SRU::U...XMLTest(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

✨ NAME ✨

SRU::Utils::XMLTest β€” the XML testing utility functions bestie, it's giving "little helper module that just wants your XML to be valid" πŸŽ€

So real quick, this page is titled SRU::U...XMLTest(3pm) up top (yeah the title bar cuts it off, that's just how it renders, don't panic πŸ’…) and it lives in the User Contributed Perl Documentation manual. Cute, right? Let's go.


🌸 SYNOPSIS 🌸

    use SRU::Utils::XMLText;
    ok( wellFormedXML($xml), '$xml is well formed' );

Okay so yes, the use line literally says XMLText with a t at the end and not XMLTest with a t... wait no. Text vs Test. The synopsis says XMLText. The module is XMLTest. That's exactly what the original page says, so I'm handing it to you character for character, no cap, I am not "fixing" anything 🫢. Copy it at your own risk, that's between you and your @INC.


πŸ¦‹ DESCRIPTION πŸ¦‹

It's a little grab-bag of utility functions made for testing XML data. That's the whole vibe. It's not a framework, it's not a lifestyle, it's just some helpers so your tests can be like "is this XML okay or is it a mess 😭".


πŸ’– METHODS πŸ’–

πŸŽ€ wellFormedXML( $xml )

Checks if $xml is welformed.

(yes, "welformed", that's the spelling the original page uses and I am a faithful narrator πŸ’€ β€” you know what it means: is it well formed? is the XML valid and not feral?)


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. Slay, honestly. 🌈


And that's the whole page bestie 🫢 this gem was rendered by perl v5.34.0 on 2022-06-17, and that's the last line of the original, so here's your cute sign-off: go forth, test your XML, and may it always be well formed βœ¨πŸ’œ

πŸ“¦ where this page comes from