Hi,
documentPart.getXML() is coming as null for some of the docx files however when I open the file in word 2010 and save the same file I am getting values from the docx file.
Enclosed the docx file. Reqesting your kind advise how to handle the scenario when documentPart.getXML() gives null value.
Below is the code:
WordprocessingMLPackage wordMLPackage = WordprocessingMLPackage.load(new FileInputStream(fileNameWithPath));
MainDocumentPart documentPart = wordMLPackage.getMainDocumentPart();
documentPart.getXML()
Attachment:
CORNEA_CORNEA-D-17-01113_tud_ACE.docx
Appreciate your timely help ...