Fork me on GitHub

How To: Write MSPDI files

Since Microsoft Project 2002, Microsoft Project has been able to read and write an XML-based data interchange format called MSPDI.

The sample code below illustrates how to write data to an MSPDI file.

import net.sf.mpxj.ProjectFile;
import net.sf.mpxj.mspdi.MSPDIWriter;

...

MSPDIWriter writer = new MSPDIWriter();
writer.write(projectFile, outputFileName);