Saving the state of Map to the XML