ujadhav Posted February 5, 2020 Share Posted February 5, 2020 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(); jrxmlexporter.setConfiguration(xmlConfiguration); jrxmlexporter.exportReport(); 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? Link to comment Share on other sites More sharing options...
I am Leo Posted February 5, 2020 Share Posted February 5, 2020 the JRXML format is the XML file. Just open it => you have an XML file. Link to comment Share on other sites More sharing options...
ujadhav Posted February 5, 2020 Author Share Posted February 5, 2020 hi 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? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now