Free Support Forum - aspose.com

XML file from a DOCX

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):

Once your file is loaded into Aspose.Words’ DOM, you can easily convert the document into following save formats:
http://www.aspose.com/docs/display/wordsjava/SaveFormat

Hope this answers your query. Please let us know if you have any more queries.