树的 XML/XSD 图形表示 [英] XML/XSD graphical representation of the tree
问题描述
我已经构建了一个 XML 文件并从中生成了一个 XSD 文件.XML 几乎是空的,因为有元素但没有价值:
I have constructed a XML file and generated a XSD file from it. The XML is almost empty as there are elements but without value :
<parent>
<child1/>
<child2/>
</parent>
我正在寻找的是一种可以将我的 XML(或其关联模式)转换为树形图形表示的软件:
What I'm looking for is a soft that could convert my XML (or its associated schema) into a graphical representation as a tree :
parent
|
|
_______________________________
| |
| |
child1 child2
有可爱的盒子、颜色等等.
with cute boxes, colors and so on.
有什么建议吗?谢谢
推荐答案
一般来说,了解您为什么要这样做会很有帮助;例如,创作/分析/验证源(XML 或 XSD)和/或用于文档目的?那你打算怎么做呢?交互的?您是否需要自动化来提取可视化?
In general, it would be helpful to understand why you would be doing it for; for example, to author/analyse/validate the source (XML or XSD) and/or for documentation purposes? Then how do you plan on doing it? Interactive? Do you need automation to extract the visualizations?
许多开源和免费版本的商业产品提供某种 XML 和 XSD 可视化:Eclipse、NetBeans、Visual Studio(开发工具)、HelpStudio(帮助创作)、Oxygen、XmlSpy(专业编辑器)等.
A number of open source and free editions of commercial products provide some sort of XML and XSD visualization: Eclipse, NetBeans, Visual Studio (development tools), HelpStudio (help authoring), Oxygen, XmlSpy (specialized editors), etc.
QTAssistant(我与之相关)还提供了 XML 和 XSD 文件的图形表示;下面是一些例子.
QTAssistant (I am associated with it) also provides graphical representations of XML and XSD files; below are some examples.
XML 可视化为一棵树:
XML visualized as a tree:
关联的(推断的)XSD:
The associated (inferred) XSD:
这些工具带有一个自动化 API,允许随着底层 XML/XSD 的变化不断更新这些图表.
The tools comes with an automation API that would allow one to constantly update these diagrams as the underlying XML/XSD changes.
这篇关于树的 XML/XSD 图形表示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!