Element boardElem = produceNameIDElement(board);
// add the list of messages
Iterator iter = board.getMonthsWithMessages();
while (iter.hasNext()) {
MonthYear curMonth = (MonthYear) iter.next();
Element elem = new Element("messages");
elem.addAttribute("month", Integer.toString(curMonth.getMonth()));
elem.addAttribute("year", Integer.toString(curMonth.getYear()));
boardElem.addContent(elem);
}
return boardElem;