Support XDM packages as well as simple XML attachments