code: public void validate(final Node document) throws SchemaValidationException
  	{
  		try
  		{
  			final Validator validator = schema.newValidator();
  
  			validator.validate(new DOMSource(document));
  		}
  		catch (SAXException | IOException e)
  		{
  			throw new SchemaValidationException(e.getMessage(), e);
  		}
  	}
docs: Validate some XML against this schema
  
  @param document
  
  @throws SchemaValidationException
  if the document does not validate against the schema