code: @Override
      public List<SAXParseException> validateWithErrors(final File f)
              throws SAXException, IOException {
          final Validator errorValidator = createNewErrorValidator();
          errorValidator.validate(utf8SourceForFile(f), null);
  
          return ((Handler) errorValidator.getErrorHandler()).exceptions;
      }
docs: {@inheritDoc}