public static String transform ( File xmlFile , boolean verbose ) throws SAXException , IOException { if ( logger . isLoggable ( Level . FINER ) ) { logger . exiting ( className , "transform(InputStream, boolean)" ) ; } FileInputStream fis = new FileInputStream ( xmlFile ) ; String result = null ; result = transform ( fis , verbose ) ; fis . close ( ) ; if ( logger . isLoggable ( Level . FINER ) ) { logger . exiting ( className , "transform(InputStream, boolean)" ) ; } return result ; }
Method to take an XML file and return a String of the JSON format .