openpreserve / jhove

File validation and characterisation.
http://jhove.openpreservation.org
Other
171 stars 79 forks source link

XML Module shouldn't report schema validations when no schema could be found #793

Open carlwilson opened 2 years ago

carlwilson commented 2 years ago

Currently, when the JHOVE XML module fails to load a schema it then goes on to report schema validation errors, which makes little sense. Failure to load an external schema should mean no further schema based errors are reported and the file is not valid.