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 .