Hi!, I’ve used the method “save” with the path and saved the xml file succesfully. MS Project imports this file perfectly, but if it is saved to an OutputStream, MS Project don’t import it, it said this file is damaged, I’ve opened this file with Notepad++ and seems the problem is at the end of the file.
Here is my code using OutputStream:
…
response.setContentType(“application/xml”);
response.setHeader(“fileToUpload.zip (2.6 KB)
Content-Disposition”, “attachment; filename=file.xml”);
final OutputStream outputStream = response.getOutputStream();
project.save(outputStream, SaveFileFormat.XML);
…
Please help me!!! here send you the file generated using OutputStream