创建Visio 2013文件中的java [英] Create a visio 2013 file in java

查看:525
本文介绍了创建Visio 2013文件中的java的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要创建使用Java .vsdx文件(图纸)。 2013的Visio使用开放包装公约。不知从哪里开始,目前指该链接<一知道href=\"http://blogs.office.com/2013/01/29/10-tips-for-developers-working-with-the-visio-vsdx-file-format/\" rel=\"nofollow\">http://blogs.office.com/2013/01/29/10-tips-for-developers-working-with-the-visio-vsdx-file-format/.

I want to create a .vsdx file (drawing) using Java. Visio 2013 uses Open Packaging Convention. I don't know from where to start, currently referring this link http://blogs.office.com/2013/01/29/10-tips-for-developers-working-with-the-visio-vsdx-file-format/.

我要code此程序在Eclipse中使用Java,但上面的链接解释完全使用C#在Visual Studio中。我没有得到任何Java库的Visio 2013年有人可以帮助我,并给一些想法,我应该如何在Java中创建一个文件.vsdx将由2013的Visio支持?

I want to code this program in Eclipse using Java but the above link is explained totally using C# in Visual Studio. I didn't get any Java library for Visio 2013. Can someone help me and give some idea how should I create a .vsdx file in Java which will be supported by Visio 2013?

推荐答案

有一定的并发症,你应该知道的:

There are some complications you should be aware of:


  1. 的Visio 2013文件格式在XSD 1.1架构中指定。这个XSD的版本不是由可用JAXB,这意味着你将不得不做大量的手工工作来获取数据解析到Java对象。

  2. Aspose.Diagram具有基于简要的评价我在几个星期前做了它在它的功能相当多的空白。

  3. 的OpenXML4J东西工作相当好用于操纵在OPC容器,但一起使用JAXB与此(即,本身不铲起,且必须在第二个被读取的XML文档内的关系,直链时,有一对夫妇conficts的DOM,通)。

我的方法已经破解XSD架构回落到一个版本1.0和使用N的对象的属性按类型进行切换。当我已经完成了我的工作,我会很乐意分享这将是由JAXB可使用的XSD。

My approach has been to hack the XSD Schema back down to a 1.0 version and using the N attributes of the objects to switch by type. When I have completed my work, I will be happy to share the XSD which would be usable by JAXB.

这篇关于创建Visio 2013文件中的java的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆