I need to validate an XML against an XSD, I am using xmllint
:
xmllint --schema schema.xsd feed.xml --noout
But it seems that I cannot save the output of the validation to a file.
Using -o
or --output
or >
to redirect the output to a file will output the parse XML, but how do I redirect the validation errors to file?