Hi, I have a question.
Can I create a XML file from a DOCX? in this case, what is the correct “SaveFormat” option?
Thanks.
Hi, I have a question.
Can I create a XML file from a DOCX? in this case, what is the correct “SaveFormat” option?
Thanks.
Hi Norman,
Thanks for your inquiry. Please note that Aspose.Words tries to mimic the same behavior as MS Word do. Aspose.Words fully supports converting a Word document to XML-based formats e.g. DOCX, FlatOPC, WordML and other Extensible Application Markup Language XAML formats. Please see the documentation here. Please use the SaveFormat.WORD_ML as save format while saving document into WordprocessingML format.
You can load the following file formats into Aspose.Words DOM (Document Object Model):
https://reference.aspose.com/words/java/com.aspose.words/loadformat
Once your file is loaded into Aspose.Words’ DOM, you can easily convert the document into following save formats:
https://reference.aspose.com/words/java/com.aspose.words/saveformat
Hope this answers your query. Please let us know if you have any more queries.