public void build(File exportFile) throws TaskIOException {
		if (exportFile == null) {
			throw new TaskIOException(ApplicationSettings.getInstance().getLocalizedMessage("log.err.file"));
		}

		log.info(ApplicationSettings.getInstance().getLocalizedMessage("log.create.file"));

		m_taskList.setName(exportFile.getName());
		try {
			DocumentBuilderFactory dbfactory = DocumentBuilderFactory.newInstance();
			DocumentBuilder builder = dbfactory.newDocumentBuilder();

			Document doc = builder.newDocument();

			Element root = doc.createElement("TASKLIST");
			doc.appendChild(root);

			createXML(doc, root);

			TransformerFactory transformerFactory = TransformerFactory.newInstance();
			Transformer transformer = transformerFactory.newTransformer();
			DOMSource source = new DOMSource(doc);
			StreamResult result = new StreamResult(exportFile);

			transformer.transform(source, result);
		} catch (ParserConfigurationException pce) {
			String err = ApplicationSettings.getInstance().getLocalizedMessage("txmlfb.pce") + ": " + pce.getLocalizedMessage();
			log.error(err);
			throw new TaskIOException(err);
		} catch (TransformerConfigurationException e) {
			String err = ApplicationSettings.getInstance().getLocalizedMessage("txmlfb.tce") + ": " + e.getLocalizedMessage();
			log.error(err);
			throw new TaskIOException(err);
		} catch (TransformerException e) {
			String err = ApplicationSettings.getInstance().getLocalizedMessage("txmlfb.ioe") + ": " + e.getLocalizedMessage();
			log.error(err);
			throw new TaskIOException(err);
		}
		log.info(ApplicationSettings.getInstance().getLocalizedMessage("txmlfb.succ"));
	}