for (int i = 0; i < areas.length; i++)
{
writer.print('<');
writer.print(XMLConstants.IMAGE_MAP_AREA_NAME);
MapArea area = areas[i];
_encodeAttribute(XMLConstants.SHAPE_ATTR, area.getShape(), writer);
_encodeAttribute(XMLConstants.COORDINATES_ATTR,
area.getCoordinatesString(),
writer);
writer.println("/>");
}
// Write the end element