saving file of xml output