saving map data on its creation into a xml file