code: private void writeTasks() throws JAXBException
     {
        Tasks tasks = m_factory.createTasks();
        m_plannerProject.setTasks(tasks);
        List<net.sf.mpxj.planner.schema.Task> taskList = tasks.getTask();
        for (Task task : m_projectFile.getChildTasks())
        {
           writeTask(task, taskList);
        }
     }
docs: This method writes task data to a Planner file.
  
  @throws JAXBException on xml creation errors