/** * @deprecated Replaced by {@link JasperExportManager#exportReportToXml(JasperPrint)}. */ public static String printReportToXml(JasperPrint jasperPrint) throws JRException { return JasperExportManager.exportReportToXml(jasperPrint); }
@Override public String createXml(Data source, String template, String reportTitle) { try { exportFileType=ExportUtils.XML; JasperPrint jprint = prepare(template, reportTitle, source, null); return JasperExportManager.exportReportToXml(jprint); } catch (JRException e) { LOG.error(e); return null; } }