Completely changed methods createXMLFile and getMapData based on new
requirements.
Method getMapData is still under development.