Hi All, I have defined a Report containing two subreports using a XML Document Data Adapter We have assigned a stacit XML File into File/URL field. When we execute preview functionality everything worked OK, Then I have devoloped a java class in order to send a XML to build the report private void generateReport(){ Document doc = null; String jasperFileName = "D:/myDir/Report.jasper"; String jasperPDFFileName = "D:/test.pdf"; File file = new File("D:/myDir/resources/XMLTest.xml"); try { JRXmlDataSource dataSource = new JRXmlDataSource(file); JasperPrint jprint = (JasperPrint) JasperFillManager.fillReport(jasperFileName, null, dataSource); JasperExportManager.exportReportToPdfFile(jprint, jasperPDFFileName); } catch(Exception e){ e.printStackTrace(); }} The problem is report is generated using original XML file defined into JasperReports Studio Could anyone help me with this. Thanks in advance.