VALIDXML(1p)
π VALIDXML π
okay so bestie, welcome to validxml β it's the manual page for the validxml command, hanging out in section 1p of the User Contributed Perl Documentation. She's a little command-line driver, and honestly? She ate. β¨
πΈ NAME πΈ
validxml β the command-line driver for XML::Validate. that's it, that's the whole vibe. π
π¦ SYNOPSIS π¦
validxml *.xml
validxml --assert-invalid *.xml
look at her go. two whole modes. iconic. π
β¨ DESCRIPTION β¨
So validxml is a command-line driver for XML::Validate, and she rolls with the 'BestAvailable' processing type. no cap, that's just how she operates. π«Ά
π§ Commandline Options π§
--assert-invalidβ this one flips the whole ok/not ok situation so that invalid stuff counts as OK instead. and yes, she still prints out the validation error, she's not hiding anything. (the original literally has a stray closing paren here, we're keeping it, character for character, periodt: "Swap the ok/not ok so invalid things are OK - still output the validation error) - this is useful for schema "unit tests".") this is lowkey perfect for schema "unit tests". π--backend [validator type]β wanna pick a specific"XML::Validate"backend? say it here, bestie. likeLibXMLorXerces. if you don't say anything it just defaults toBestAvailable, because she trusts her own taste. π
π Output π
The output is Test::Harness compatible, which is giving very much "I play nice with your test suite" energy. π
1..scalar @files
ok - filename/not ok - filename - validation error
like, that's the format. 1..scalar @files up top, then a line per file saying ok - filename or not ok - filename - validation error. she's transparent, she's honest, she tells you exactly what went wrong. main character energy fr fr. π
β VERSION β
$Revision: 1.10 $
$Id: validxml.pl,v 1.10 2006/04/07 09:43:10 johnl Exp $
yep, version 1.10. vintage but still serving. π₯
π AUTHOR π
Nicola Worthington wrote this. also, hanging out right here in the AUTHOR section:
$Author: johnl $
so, credits where credits are due. π«Ά
π COPYRIGHT π
(c) BBC 2005. This program is free software; you can redistribute it
and/or modify it under the terms of the GNU GPL. See the file COPYING in this
distribution, or http://www.gnu.org/licenses/gpl.txt
okay so technically:(c) BBC 2005. this program is free software, you can redistribute it and/or modify it under the terms of the GNU GPL. check the fileCOPYINGin this distribution, or go to http://www.gnu.org/licenses/gpl.txt. do it, bestie, read your licenses. π
the cute little sign-off: this page is from perl v5.34.0, dated 2022-06-28, and it's page VALIDXML(1p). mwah. π bye bestie, go validate some XML. π
π¦ where this page comes from
- debian bookworm: libxml-validate-perl 1.025-4 Β· GPL-1.0-or-later
- debian trixie: libxml-validate-perl 1.025-4 Β· GPL-1.0-or-later
- ubuntu noble: libxml-validate-perl 1.025-4 Β· GPL-1.0-or-later
- ubuntu resolute: libxml-validate-perl 1.025-4 Β· GPL-1.0-or-later
- ubuntu stonking: libxml-validate-perl 1.025-4 Β· 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