File xmlFile = new File(fileName);
try {
String fileContents = FileUtil.readFileContentsToString(xmlFile, "UTF-8");
// Converting the XML to JSON
JSONObject json = XML.toJSONObject(fileContents);
JsonImport ji = new JsonImport(json, fileName, workspace, "UTF-8", -1);
Worksheet w = ji.generateWorksheet();
return w;
} catch (FileNotFoundException e) {
logger.error("Cannot read file " + fileName + ".");
e.printStackTrace();
} catch (JSONException e) {