Validate one or more XML documents against a Document Type Definition (DTD)

xml validate

xml validate --dtd {{path/to/schema.dtd}} {{path/to/input1.xml|URI}} {{input2.xml ...}}

click the source code to copy install xml validate on any operating system with command-not-found.com