使用 c# 将现有 Docx 另存为 XML

Save existing Docx as XML using c#

我有一个现有的 word 文档 (office 2010),想以编程方式将其另存为 XML。我被试过了

   Microsoft.Office.Interop.Word.Application.Documents.Open(@"C:\Test\NewDocument.docx");

但它不正确。

我该怎么做?

var myfile= @"C:\Test\NewDocument.docx"; 
var fileInfo = new FileInfo(myfile); 
fileInfo.MoveTo(Path.ChangeExtension(myfile, ".xml"));