Setting XML to be downloaded as an Attachment

All other mimetypes are treated normally.

Closes DLTP-28
Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.