[英]Generator vsdx (visio) class diagram from xml file, Java
I have an xml file in which I have some classes definitions.我有一个 xml 文件,其中有一些类定义。 I need to export it to a vsdx diagram.
我需要将它导出到 vsdx 图。 So simply put, I need a way to convert xml to vsdx in Java.
所以简单地说,我需要一种在 Java 中将 xml 转换为 vsdx 的方法。
What libraries should I use, can it be done in source code?我应该使用哪些库,可以在源代码中完成吗? Thank you.
谢谢你。
Afaik,只有一个 Java 库可以在没有 Visio 的情况下编写 Visio 图表(在 Linux 服务器上?) - Aspose 产品... libre 办公库 (libvisio) 只能读取。
Keep in mind the VSDX file format is an OpenXML file format.请记住,VSDX 文件格式是一种 OpenXML 文件格式。 That means that, theoretically, anyone could produce a VSDX file without resorting to hacking the file format.
这意味着,理论上,任何人都可以生成 VSDX 文件,而无需借助文件格式。
That said, it's probably not terribly easy to do it.也就是说,要做到这一点可能并不容易。 Microsoft has an article with examples on their website:
微软在他们的网站上有一篇带有示例的文章:
Manipulate the Visio file format programmatically https://docs.microsoft.com/en-us/office/client-developer/visio/how-to-manipulate-the-visio-file-format-programmatically以编程方式操作 Visio 文件格式https://docs.microsoft.com/en-us/office/client-developer/visio/how-to-manipulate-the-visio-file-format-programmatically
I don't know how adaptable this is to Java, but it's worth a look!我不知道这对 Java 的适应性如何,但值得一看!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.