public void save(String path) throws IOException
{
Document document = new Document();
document.setRootElement(getXMLElement());
XMLOutputter outputter = new XMLOutputter();
outputter.setFormat(Format.getPrettyFormat().setEncoding("utf-8"));
outputter.output(document, new OutputStreamWriter(new FileOutputStream(path), "UTF-8"));
}