while (iterator.hasNext()) {
TileBuildablePrerequisite tileBuildablePrerequisite = iterator.next();
if (tileBuildablePrerequisite instanceof NoVegetationPrerequisite) {
xml.append("<NoVegetation/>\n");
} else if (tileBuildablePrerequisite instanceof NoTileImprovementPrerequisite) {
NoTileImprovementPrerequisite noTileImprovementPrerequisite = (NoTileImprovementPrerequisite) tileBuildablePrerequisite;
xml.append("<NoTileImprovement>\n");
Iterator<Integer> exclusiveImprovementsIterator = noTileImprovementPrerequisite.getExclusiveImprovementsIterator();
while (exclusiveImprovementsIterator.hasNext()) {
Integer integer = exclusiveImprovementsIterator.next();
xml.append("<TileImprovement id=\"" + integer + "\"/>");
}
xml.append("</NoTileImprovement>");