jing(1)
β¨ jing(1) β the vibe check for your XML β¨
okay so bestie, this is the jing manual page, living in the General Commands Manual section. If you've got an XML document and a RELAX NG schema and you need them to get along, this is your girl. π«Ά
πΈ NAME πΈ
jing β validate an XML document using a RELAX NG schema π
π SYNOPSIS π
jing [-cfit] [-e encoding] rng-file [xml-file...]
that's the whole shape of it, no notes, periodt.
π¦ DESCRIPTION π¦
okay so here's the tea, fr fr. You hand jing an rng-file and one or more xml-files. If rng-file is a correct RELAX NG schema and every single xml-file is a well-formed XML document that is valid with respect to rng-file, then jing says absolutely nothing β silent, iconic, no commentary β and terminates with a status of 0. πβ¨
but if that's not the case? she will speak up. jing reports one or more errors to the standard output and terminates with a status of 1. π Not a crash, not a tantrum, just receipts.
Also important, bestie: both rng-file and xml-file can be filenames or URIs. She's flexible like that. π
π OPTIONS π
-cβ uses the compact syntax for the schema. cute and short, just how we like it. π-eenc β uses the encoding enc to read the schema. tell her what language the bytes are speaking, she'll listen. π¦-fβ checks that the document is feasibly valid. A document is feasibly valid if it could be transformed into a valid document by inserting any number of attributes and child elements anywhere in the tree. This is equivalent to transforming the schema by wrapping everydata,list,elementandattributeelement in anoptionalelement and then validating against the transformed schema. This option may be useful while a document is still under construction. π§ This option also disables checking that for every IDREF there is a corresponding ID.-iβ disables checking of ID/IDREF/IDREFS. By default, Jing enforces the constraints imposed by RELAX NG DTD Compatibility with respect to ID/IDREF/IDREFS. so like, this is the "pls stop policing my references" flag. π-tβ prints the time used by Jing for loading the schema and for validation. β±οΈ she's timed, she's transparent, she's showing her work.
heads up bestie:-fand-iare the two that turn off checking. Not "broken", just β¨ looser β¨. Know what you're doing before you flip them. π
π SEE ALSO π
trang(1)πhttp://relaxng.orgπ
π AUTHOR π
James Clark (jjc@jclark.com) β king behavior, honestly. π
This product includes software developed by the Apache Software Foundation (http://www.apache.org/). π«Ά
and that's the whole page, bestie. this version was <rainbow>@VERSION@</rainbow> and it's the jing(1) page from the General Commands Manual, dated whenever this build got shipped. go validate something and slay. π
β¨π
π¦ where this page comes from
- debian bookworm: jing 20220510-2
- debian trixie: jing 20241231+repack-1~deb13u1
- ubuntu jammy: jing 20181222+dfsg2-6
- ubuntu noble: jing 20220510-3
- ubuntu questing: jing 20241231-1
- ubuntu resolute: jing 20241231+repack-1
- ubuntu stonking: jing 20241231+repack-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms