code: private void writeCalendars() throws JAXBException
     {
        //
        // Create the new Planner calendar list
        //
        Calendars calendars = m_factory.createCalendars();
        m_plannerProject.setCalendars(calendars);
        writeDayTypes(calendars);
        List<net.sf.mpxj.planner.schema.Calendar> calendar = calendars.getCalendar();
  
        //
        // Process each calendar in turn
        //
        for (ProjectCalendar mpxjCalendar : m_projectFile.getCalendars())
        {
           net.sf.mpxj.planner.schema.Calendar plannerCalendar = m_factory.createCalendar();
           calendar.add(plannerCalendar);
           writeCalendar(mpxjCalendar, plannerCalendar);
        }
     }
docs: This method writes calendar data to a Planner file.
  
  @throws JAXBException on xml creation errors