Setting XML to be downloaded as an Attachment

All other mimetypes are treated normally.

Closes DLTP-28
Missing top-level class documentation comment.