Lost style when saving xml to docx


I have an XML word document with styles.
When I save it as DOCX with Aspose.Words, all the styles are lost.

When I save this XML file as docx with Microsoft Word, it Works, all my styles are in the new document.

In the zip file, you have the :

  • input file in XML format
  • the output done with Microsoft Word
  • the output done With Aspose.Words
  • screenshot of the styles for all the cases.


files.zip (2.0 MB)


We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-19510. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSNET-19510) have been fixed in this Aspose.Words for .NET 19.12 update and this Aspose.Words for Java 19.12 update.

I confirm that this issue is solved by this Version.