VALIDXML(1p)

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

πŸ’– 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. like LibXML or Xerces. if you don't say anything it just defaults to BestAvailable, 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. 🫢


(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 file COPYING in 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. 🌟