updated osmap.inc to save the xml file

added code to save xml