Terminal Quick Tip - Validate XML Against XSD
If you have some XML in a file and you also have the corresponding XSD in a file, here’s how you validate the XML matches the XSD.
$ xmllint --schema your.xsd your.xml --noout
If the XML matches the schema defined in the XSD you should see output like:
your.xml validates