response.setCharacterEncoding(encoding); XWikiAttachment packFile = doc.getAttachment(name); importer.Import(packFile.getContentInputStream(context)); String xml = importer.toXml(); byte[] result = xml.getBytes(encoding); importer.Import(packFile.getContentInputStream(context)); String all = request.get("all"); if (!"1".equals(all)) {
importer.Import(packFile.getContent(context)); } catch (IOException e) { throw new ApplicationManagerException(XWikiException.ERROR_XWIKI_UNKNOWN,