StringBuffer xml = new StringBuffer();
xml.append("<Prerequisites>\n");
if (prerequisitesIterator != null) {
while (prerequisitesIterator.hasNext()) {
SettlementBuildablePrerequisite prerequisite = prerequisitesIterator.next();
if (prerequisite instanceof ImprovementPrerequisite) {
ImprovementPrerequisite improvementPrerequisite = (ImprovementPrerequisite) prerequisite;
xml.append("<ImprovementPrerequisite>\n");
Iterator<SettlementImprovementType> iterator = improvementPrerequisite.getPrerequisiteImprovementsIterator();
while (iterator.hasNext()) {