code: 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;
      }
docs: Method to take an XML file and return a String of the JSON format.
  
  @param xmlFile The XML file to transform to JSON.
  @param verbose Boolean flag denoting whther or not to write the JSON in verbose (formatted), or compact form (no whitespace)
  @return A string of the JSON representation of the XML file
  
  @throws SAXException Thrown if an error occurs during parse.
  @throws IOException Thrown if an IOError occurs.