public static SAXParser newSAXParser(String schemaLanguage,boolean namespaceAware,boolean validating,File schema) throws SAXException, ParserConfigurationException {
  SchemaFactory schemaFactory=SchemaFactory.newInstance(schemaLanguage);
  return newSAXParser(namespaceAware,validating,schemaFactory.newSchema(schema));
}

public static SAXParser newSAXParser ( String schemaLanguage , boolean namespaceAware , boolean validating , File schema ) throws SAXException , ParserConfigurationException { SchemaFactory schemaFactory = SchemaFactory . newInstance ( schemaLanguage ) ; return newSAXParser ( namespaceAware , validating , schemaFactory . newSchema ( schema ) ) ; }
factory method to create a saxparser configured to validate according to a particular schema language and a file containing the schema to validate against .
