Also possibly break out the `(!XmlSettings.EncodingEnabled ? "" : "; charset=" + XmlSettings.DefaultEncoding.WebName)` part into a private helper method `GetEncoding()` so you can do

`string.Concat("application/xml", this.GetEncoding());`

which will be much cleaner and easier to read/follow