private void SaveXml() { xmlFile.UpdateNodeValue("GetTokenReturn/id", id); xmlFile.UpdateNodeValue("GetTokenReturn/access_token", access_token); xmlFile.UpdateNodeValue("GetTokenReturn/issued_at", issued_at); xmlFile.UpdateNodeValue("GetTokenReturn/token_type", token_type); xmlFile.UpdateNodeValue("GetTokenReturn/refresh_token", refresh_token); if (File.Exists(xmlFileName)) { File.Delete(xmlFileName); } xmlFile.Save(xmlFileName); }