public Node parse ( File file ) throws IOException , SAXException { InputSource input = new InputSource ( new FileInputStream ( file ) ) ; input . setSystemId ( "file://" + file . getAbsolutePath ( ) ) ; getXMLReader ( ) . parse ( input ) ; return parent ; }
Parses the content of the given file as XML turning it into a tree of Nodes .