private void generateXPDL(Element xpdlElem)
throws JDOMException, IOException {
FileWriter writer = new FileWriter(outputPath);
//StringWriter writer = new StringWriter();
Format format = Format.getPrettyFormat();
format.setLineSeparator("\n");
format.setEncoding("ISO-8859-1");
XMLOutputter outputter = new XMLOutputter(format);
Document doc = new Document(xpdlElem);
outputter.output(doc, writer);
//System.out.println(writer.toString());
writer.close();