code: public boolean loadSchema(InputSource in) throws SAXException, IOException {
      try {
        schema = sr.createSchema(new SAXSource(in), schemaProperties);
        validator = null;
        return true;
      }
      catch (IncorrectSchemaException e) {
        return false;
      }
    }
docs: Loads a schema. Subsequent calls to <code>validate</code> will validate with
  respect the loaded schema. This can be called more than once to allow
  multiple documents to be validated against different schemas.
  
  @param in the InputSource for the schema
  @return <code>true</code> if the schema was loaded successfully; <code>false</code> otherwise
  @throws IOException if an I/O error occurred
  @throws SAXException if an XMLReader or ErrorHandler threw a SAXException