Mono(mono-xmltool)
β¨ mono-xmltool β¨
okay bestie, welcome to the Mono(mono-xmltool) era π this is the glow-up page for mono-xmltool β Mono's XML validation and transformation tool. no cap, it's giving command-line-front-end-for-XML-realness, and i'm gonna walk you through every single flag like we're texting at 2am π«Ά
πΈ SYNOPSIS πΈ
mono-xmltool --validate [*.rng | *.rnc | *.nvdl | *.xsd] [instances]
mono-xmltool --validate-rng relax-ng-grammar-xml [instances]
mono-xmltool --validate-rnc relax-ng-compact-grammar-file [instances]
mono-xmltool --validate-nvdl nvdl-script-xml [instances]
mono-xmltool --validate-xsd xml-schema [instances]
mono-xmltool --transform stylesheet instance-xml
mono-xmltool --prettyprint [source [result]]
π¦ DESCRIPTION π¦
so mono-xmltool is literally a command line front end for a bunch of different functions that live inside the Mono XML class libraries. and right now β rn β it offers validation with all sorts of different kinds of schemas, xslt transformations, and pretty printing. iconic triple threat behavior, honestly π
π XML VALIDATION π
mono-xmltool can validate a given set of XML files (that's the instances parameter, mwah) using the schema file you hand it. the schema files it supports currently are:
- Relax NG (
*.rng) - Compact Relax NG (
*.rnc) - Namespace-based Validation Dispatching Language (
*.nvdl) - XML Schema (
*.xsd)
if you invoke it with the --validate argument, Mono will use the filename extension to guess which kind of validation you're asking for. and if you wanna be extra and force it, the --validate-xxx flags do exactly that π₯
here's the full list of flags and the actual class in Mono that implements each one, because we love transparency in this house:
--validate-rngβ usesCommons.Xml.Relaxng.RelaxNgPatternas the schema, andCommons.Xml.Relaxng.RelaxngValidatingReaderas the validator.--validate-rncβ usesCommons.Xml.Relaxng.RncParseras the schema, andCommons.Xml.Relaxng.RelaxngValidatingReaderas the validator.--validate-nvdlβ usesCommons.Xml.Nvdlas the schema andCommons.Xml.NvdlValidatingReaderas the validator.--validate-xsdβ usesSystem.Xml.Schema.XmlSchemaas the schema and usesSystem.Xml.XmlValidatingReaderas the validator.
bestie note: the classes are the whole point here. don't mix em up, they're each doing their own little job π
π TRANSFORMATIONS π
this does an XSLT transformation. the stylesheet must be an XSLT file, and the instance-xml is the document to be processed. the output is sent to the standard output. main character behavior: it just does the thing and shows you the result β¨
π PRETTY PRINTING π
produces a pretty-print rendering of the source file. if source is not specified, it reads the standard input. if result is not specified, the output is sent to the standard output. so like, flexible. we love options. slay π
π§ MAILING LISTS π§
mailing lists are listed at http://www.mono-project.com/community/help/mailing-lists/
β WEB SITE β
π SEE ALSO π
and that's the whole page, bestie π this one was Mono(mono-xmltool) β the Mono XML validation and transformation tool β and now you know it fr fr. go validate something. periodt. πΈπ¦
π¦ where this page comes from
- alpine 3.24: mono-doc 6.14.1-r1 Β· MIT
- epel 10: mono-devel 6.14.1-1.el10_2 Β· MIT
- fedora 44: mono-devel 6.14.1-3.fc44 Β· MIT
- fedora 44: mono-devel 6.14.1-3.fc44 Β· MIT
- fedora 44: mono-devel 6.14.1-4.fc44 Β· MIT
- fedora 44: mono-devel 6.14.1-4.fc44 Β· MIT
- nixos 26.05: mono 6.14.1
- nixpkgs unstable: mono 6.14.1
- ubuntu resolute: mono-devel 6.14.1+ds2-2 Β· MIT
- ubuntu stonking: mono-devel 6.14.1+ds2-3 Β· MIT
- (C) 2003 Ximian, Inc
- (C) 2004-2005 Novell, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms