将XML视为树的工具?

时间:2022-04-02 18:06:37

Is there any java based tool to view the XML file in the form of binary/ternary tree?

是否有基于java的工具以二进制/三元树的形式查看XML文件?

I need a pictorial view of tree.. in the form of nodes and edges.. like a graph..

我需要一张树形图。以节点和边的形式。像一个图. .

please help me

请帮我

4 个解决方案

#1


3  

If you have any XML/XSLT skills you could transform your XML to SVG. This method would allow you to draw anything you want. See an example here. Once you have the SVG file you can upload it into Google docs or view it in Photoshop or embed it in an html document.

如果您有任何XML/XSLT技能,您可以将XML转换为SVG。这个方法可以让你画任何你想要的东西。看到一个例子。一旦有了SVG文件,就可以将它上传到谷歌文档中,或者在Photoshop中查看它,或者将它嵌入到html文档中。

#2


2  

Eclipse (IDE) www.eclipse.org

Eclipse(IDE)www.eclipse.org

The XML editor also has a Design view. This view has the following features:

XML编辑器还有一个设计视图。该视图具有以下特点:

  • List item

    列表项

    The XML file is represented simultaneously as a table and a tree. This helps make navigation and editing easier.

    XML文件同时表示为表和树。这有助于使导航和编辑更容易。

  • Content and attribute values can be edited directly in the table cells, while pop-up menus on the tree nodes give alternatives that are valid for that location. For example, the Add Child menu item will list only those elements from a DTD or XML schema which would be valid children at that point (as long as grammar constraints are on).
  • 可以直接在表格单元中编辑内容和属性值,而树节点上的弹出菜单提供了对该位置有效的替代方案。例如,Add子菜单项将只列出DTD或XML模式中的那些元素,这些元素在那时将是有效的子元素(只要语法约束在)。

#3


1  

Take a look at JUNG, http://jung.sourceforge.net/. I've used that toolkit to create an XPath visualizer, which was kind of fun. Don't remember if there was a ready XML to tree example, or not, though.

看看JUNG, http://jung.sourceforge.net/。我使用这个工具包创建了一个XPath可视化工具,这很有趣。不要忘记是否有现成的XML to tree示例,尽管如此。

#4


0  

XML Spy would be good, but it's not free.

XML Spy很好,但是它不是免费的。

You can open XML in any browser and see it rendered as a hierarchy.

您可以在任何浏览器中打开XML并将其呈现为层次结构。

#1


3  

If you have any XML/XSLT skills you could transform your XML to SVG. This method would allow you to draw anything you want. See an example here. Once you have the SVG file you can upload it into Google docs or view it in Photoshop or embed it in an html document.

如果您有任何XML/XSLT技能,您可以将XML转换为SVG。这个方法可以让你画任何你想要的东西。看到一个例子。一旦有了SVG文件,就可以将它上传到谷歌文档中,或者在Photoshop中查看它,或者将它嵌入到html文档中。

#2


2  

Eclipse (IDE) www.eclipse.org

Eclipse(IDE)www.eclipse.org

The XML editor also has a Design view. This view has the following features:

XML编辑器还有一个设计视图。该视图具有以下特点:

  • List item

    列表项

    The XML file is represented simultaneously as a table and a tree. This helps make navigation and editing easier.

    XML文件同时表示为表和树。这有助于使导航和编辑更容易。

  • Content and attribute values can be edited directly in the table cells, while pop-up menus on the tree nodes give alternatives that are valid for that location. For example, the Add Child menu item will list only those elements from a DTD or XML schema which would be valid children at that point (as long as grammar constraints are on).
  • 可以直接在表格单元中编辑内容和属性值,而树节点上的弹出菜单提供了对该位置有效的替代方案。例如,Add子菜单项将只列出DTD或XML模式中的那些元素,这些元素在那时将是有效的子元素(只要语法约束在)。

#3


1  

Take a look at JUNG, http://jung.sourceforge.net/. I've used that toolkit to create an XPath visualizer, which was kind of fun. Don't remember if there was a ready XML to tree example, or not, though.

看看JUNG, http://jung.sourceforge.net/。我使用这个工具包创建了一个XPath可视化工具,这很有趣。不要忘记是否有现成的XML to tree示例,尽管如此。

#4


0  

XML Spy would be good, but it's not free.

XML Spy很好,但是它不是免费的。

You can open XML in any browser and see it rendered as a hierarchy.

您可以在任何浏览器中打开XML并将其呈现为层次结构。