Refactoring FileValidator - reports an error if file/xsd cannot be read