public GPathResult parse(final File file) throws IOException, SAXException {
  final FileInputStream fis=new FileInputStream(file);
  final InputSource input=new InputSource(fis);
  input.setSystemId("file://" + file.getAbsolutePath());
  try {
    return parse(input);
  }
  finally {
    fis.close();
  }
}

public GPathResult parse ( final File file ) throws IOException , SAXException { final FileInputStream fis = new FileInputStream ( file ) ; final InputSource input = new InputSource ( fis ) ; input . setSystemId ( "file://" + file . getAbsolutePath ( ) ) ; try { return parse ( input ) ; } finally { fis . close ( ) ; } }
parses the content of the given file as xml turning it into a gpathresult object
