reading / writing mat converted to xml functionality successfully tested