/** * Export {@link XWikiAttachment} to {@link DeletedAttachment}. * * @param attachment the deleted attachment * @param context the current context, used in the XML export * @throws XWikiException if an exception occurs during the XML export */ protected void setAttachment(XWikiAttachment attachment, XWikiContext context) throws XWikiException { setXml(attachment.toStringXML(true, true, context)); }