w.writeAttribute("x", "" + m.getX()); w.writeAttribute("y", "" + m.getY());
w.writeAttribute("x", "" + (m.getX() + b.x)); w.writeAttribute("y", "" + (m.getY() + b.y));
    private void writeObject(MapObject m, XMLWriter w) throws IOException {        try {            w.startElement("object");            w.writeAttribute("x", "" + m.getX());            w.writeAttribute("y", "" + m.getY());            w.writeAttribute("type", m.getType());            if (m.getSource() != null) {                w.writeAttribute("source", m.getSource());            }            Enumeration keys = m.getProperties();            while (keys.hasMoreElements()) {                String key = (String) keys.nextElement();                w.startElement("property");                w.writeAttribute("name", key);                w.writeAttribute("value", m.getPropertyValue(key));                w.endElement();            }            w.endElement();        } catch (XMLWriterException e) {            e.printStackTrace();        }    }