handling of attachments with XML content