- Code: Select all
String itemId = "{DD6E220C-54BC-47B3-8AE8-A0A61D4934FF}".toLowerCase();
CustomXmlDataStoragePart customXmlDataStoragePart = wordMLPackage.getCustomXmlDataStorageParts().get(itemId);
I removed the lines , and references to it in the file and was able to get the output.
But on looking further I tried to figure out the item id and found that the input docx provided for this example has a customxml folder with item xmls. How can i add this while manually creating an input file? When creating the input manually should I follow any process so as to add the items.
This was the input file the example uses
// Convenient to read from .xml file,
// so it is easy to manually edit it (ie without having to unzip etc etc)
// To get the sample file, google for "Content Control Toolkit"
String inputfilepath = "MedicalChartSample.docx";