public void parseFile ( File file ) throws ParserException , IOException { Reader reader = null ; try { reader = new FileReader ( file ) ; nanoElement . parseFromReader ( reader ) ; } catch ( XMLParseException e ) { throw new ParserException ( e . getMessage ( ) ) ; } finally { if ( reader != null ) reader . close ( ) ; } }
Parse a XML file .