Good morning, here I leave the code behind (Code Behind), in the part of .ASPX you must add a button that says download and the click event you add this code.
private void ButtonDescargar_click(object sender, System.EventArgs e)
{
Response.ContentType = "text/xml";
Response.ContentEncoding = System.Text.Encoding.UTF8;
Response.AppendHeader("NombreCabecera", "MensajeCabecera");
Response.TransmitFile(Server.MapPath("~/tuRuta/TuArchivo.xml"));
Response.End();
}
You can also use the function in other events, if you wish, you do not have to limit yourself to a button