如何将 vsdx 文件转换为 xml 文件

How to convert vsdx file to xml file

我想将 .vsdx 文件转换为 .xml 文件,我在 msdn 和相关问题中搜索它但没有找到任何答案。谁能给我 link 或一段代码?

引用Microsoft:

Office 2007 introduced new XML-based file formats for Microsoft Office Excel 2007, Office Word 2007, and Office PowerPoint 2007. Their file formats were the combination of a ZIP archive package and mainly XML content. Given the success of these formats, we decided to move in the same direction.

You can think of the new VSDX format as being composed of two concepts: a ZIP archive package and XML content. First, we used the same ZIP archive package as used in Excel, Word, and PowerPoint. Formally, this package is defined by the Open Packaging Conventions (ISO/IEC 29500-2:2008) standard. Second, we based the XML content on our existing Visio XML Drawing (VDX) format.

换句话说,vsdx已经是一个xml文件,你只需要解压它,不需要转换