xml-validate
Validate XML documents. tldr-pages
On several platforms
Several platforms
Validate one or more XML documents for well-formedness only
xml [val path/to/input1.xml|uri1 path/to/input2.xml|uri2 ...IdentifyValidate one or more XML documents against a Document Type Definition (DTD)
xml [val --dtd path/to/schema.dtd path/to/input1.xml|uri1 path/to/input2.xml|uri2 ...IdentifyValidate one or more XML documents against an XML Schema Definition (XSD)
xml [val --xsd path/to/schema.xsd path/to/input1.xml|uri1 path/to/input2.xml|uri2 ...IdentifyValidate one or more XML documents against a Relax NG schema (RNG)
xml [val --relaxng path/to/schema.rng path/to/input1.xml|uri1 path/to/input2.xml|uri2 ...IdentifyDisplay help
xml [val --helpIdentify