try { w.startElement("objectgroup");  w.endElement(); } catch (XMLWriterException xwe) { xwe.printStackTrace();
ListIterator itr = o.getObjects(); Rectangle r = o.getBounds(); while(itr.hasNext()) { writeObject((MapObject) itr.next(), o, w);
    private void writeObjectGroup(ObjectGroup o, XMLWriter w) throws IOException {    	try {	    	w.startElement("objectgroup");	    		    	w.endElement();    	} catch (XMLWriterException xwe) {    		xwe.printStackTrace();    	}    }