Document doc = new Document();
Element root = new Element(PROJECT,ns);
root.setAttribute(NAME,proj.getName(),ns);
root.setAttribute(VERSION,String.valueOf(version),ns);
root.setAttribute(EXPORT_DATE,DateFormat.getDateTimeInstance().format(d),ns);
doc.addContent(root);
increaseProgress();
setStatus("Writing targets",0); //$NON-NLS-1$
root.addContent(getTargetListElement(TARGET_LIST,proj.getTargets()));