You can read all the details at: Convert XML to MPP or Vice Versa Programmatically in Java
Last active
February 24, 2022 12:25
-
-
Save aspose-com-gists/a58d91fc3940675de3c3895f0f1c1537 to your computer and use it in GitHub Desktop.
Java Convert XML to MPP or Import Microsoft Project Data File as XML Programmatically
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Load input MPP file using Project class | |
Project project = new Project("template.mpp"); | |
// Save output XML file with SaveFileFormat enumeration | |
project.save("output.xml", SaveFileFormat.XML); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Load input XML file | |
Project xmlProject = new Project("Input.xml"); | |
// Load template MPP file | |
Project mppProject = new Project("Blank Project 2010.mpp"); | |
// Call copyTo() method of Project class | |
xmlProject.copyTo(mppProject); | |
// Save output MPP (Microsoft Project File) | |
mppProject.save("ConvertedXmlToMpp.mpp", SaveFileFormat.MPP); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment