Jasper export to xml API output is Japserprint object in xml format?


We are using the following code for exporting XML.

   JRXmlExporter jrxmlexporter = new JRXmlExporter();
        jrxmlexporter.setExporterInput(new SimpleExporterInput(jasperPrint));
        jrxmlexporter.setExporterOutput(new SimpleXmlExporterOutput(stream));
        SimpleExporterConfiguration xmlConfiguration = new SimpleExporterConfiguration();

But the output is something different, it is simply a jasper print object in XML format? is it expected behavior?

Is there any way to get data source as a XML output rather than jasper print?

ujadhav's picture
Joined: Apr 12 2019 - 1:30am
Last seen: 3 weeks 6 days ago

the JRXML format is the XML file. Just open it => you have an XML file.

I am Leo - 2 months 19 hours ago


Thanks for input, but here we are talking about output of particular jrxml report, above api is supposed to provide some output, which is not jrxml , its jasperprint object in xml.

Some BI tools provide datasource as xml output but here what is meaning of this xml? where we can use it?

ujadhav - 2 months 19 hours ago

0 Answers:

No answers yet