how to Validate a XML file with XSD through xmllint [duplicate] how to Validate a XML file with XSD through xmllint [duplicate] xml xml

how to Validate a XML file with XSD through xmllint [duplicate]


Figured it out, had to use --schema instead of --validate.

xmllint --schema yourxsd.xsd yourxml.xml --noout

The --noout makes sure your code in XSD and XML doesn't show. With this option you will only see the Validation Errors.