private void generateXmlFile() throws Exception {
        try {
            String fileName = inputFile.getName().split("\\.")[0];
            File outputFile = new File(outputFolder, fileName + ".xml");

            Element rootElement = new Element(fileName + "List");
            for (String[] lines : dataList) {
                Element e1 = new Element(fileName);

                for (int i = 0; i < lines.length; i++) {
                    if (lines.length > tabList.length)
                        continue;
                    Element e2 = new Element(tabList[i].substring(0,1).toLowerCase()+tabList[i].substring(1));
                    e2.setText(lines[i] == null ? "" : lines[i]);
                    e1.addContent(e2);
                }

                rootElement.addContent(e1);
            }
            Document doc = new Document(rootElement);
            XMLOutputter out = new XMLOutputter();
            Format format = Format.getCompactFormat();
            format.setIndent("      ");
            format.setEncoding("UTF-8");
            out.setFormat(format);

            FileWriter fw = new FileWriter(outputFile);
            out.output(doc, fw);
            fw.close();
        } catch (Exception e) {
            System.out.println(inputFile.getName());
            throw e;
        }
    }