private static Document parseXmlToDocument ( final File xmlFile ) { Document result = null ; Reader reader = null ; try { reader = new FileReader ( xmlFile ) ; result = parseXmlStream ( reader ) ; } catch ( FileNotFoundException e ) { // This should never happen... } finally { IOUtil . close ( reader ) ; } return result ; }
Creates a Document from parsing the XML within the provided xmlFile .