Content problem while converting xml to docx

Hi,
I tried to convert a xml document to docx document using aspose for words, but when i open the docx document it throws an error message saying " The file cannot be opened because there are problems with the contents". Below is the code snippet used:

LoadOptions loadOpt1 = new LoadOptions();
loadOpt1.setLoadFormat(LoadFormat.WORD_ML);
Document srcDoc1 = new Document(String filepath,loadOpt1);
srcDoc1.save(String filepath, SaveFormat.DOCX);

I have attached the xml file here for your reference. Please analyse and let me know the problem.

Thanks,
Muthulakshmi.

Hi Muthulakshmi,


Thanks for your inquiry. After an initial test with Aspose.Words 16.1.0, we were unable to reproduce this issue on our end. We would suggest you please upgrade to the latest version of Aspose.Words. You can download it from the following link. Hope, this helps.

Download latest version of Aspose.Words for Java

Best regards,

Hi,

Issue resolved after upgrade to the latest Aspose.word 16.1.0.
Thanks for your prompt reply.

Thanks,
Muthulakshmi.M