Podes guardarlo con File.WriteAllTextFile.WriteAllText
, lo que sí, primero lo tendrías que convertir a string..
string xml = string.Empty;
using (var stringWriter = new StringWriter())
using (var xmlTextWriter = XmlWriter.Create(stringWriter))
{
xml.WriteTo(xmlTextWriter);
xmlTextWriter.Flush();
xml = stringWriter.GetStringBuilder().ToString();
}
File.WriteAllText(ruta, xml);
Espero que te sea útil... Saludos