private void parse ( Resolver pResolver , ValidationSet pValidationSet , File pFile , ErrorHandler errorHandler ) throws IOException , SAXException , ParserConfigurationException { XMLReader xr = newSAXParserFactory ( pValidationSet ) . newSAXParser ( ) . getXMLReader ( ) ; if ( pResolver != null ) { xr . setEntityResolver ( pResolver ) ; } xr . setErrorHandler ( errorHandler ) ; xr . parse ( pFile . toURI ( ) . toURL ( ) . toExternalForm ( ) ) ; }
Called for validating a single file .