Page 1 of 1

Adding a new p:sldMasterId node with different r:id

PostPosted: Wed Feb 20, 2013 8:24 pm
by nikhilesh.kumar
Hi,
I have to update the p:sldMasterId node in p:sldMasterIdLst of presentation.xml. I'm using the code below to achieve it but getting the two sldMasterId in the resulting xml. Please help me out here.

//Code used
PresentationMLPackage.load(new java.io.File("test.pptx")).getMainPresentationPart().addSlideMasterIdListEntry(SlideMasterPart);

//Resulting presentation.xml
<p:sldMasterIdLst>
<p:sldMasterId r:id="rId1" id="2147483660" />
<p:sldMasterId r:id="rId5" id="2800656621" />
</p:sldMasterIdLst>

Highlighted part should not be present.