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