code: 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() );
      }
docs: Called for validating a single file.
  
  @param pResolver The resolver to use for loading external entities.
  @param pValidationSet The validators configuration.
  @param pFile The file to validate.
  @throws IOException An I/O error occurred.
  @throws SAXException Parsing the file failed.
  @throws ParserConfigurationException Creating an XML parser failed.