如何使用Javascript在HTML页面中显示XML作为可折叠和可展开的树? [英] How to display XML in a HTML page as a collapsible and expandable tree using Javascript?
问题描述
如何在HTML页面中显示一个XML文档作为可折叠和可展开的树?
我想在HTML页面中显示一个XML文档作为漂亮漂亮的印刷树结构。我希望能够展开和折叠树枝。例如,Firefox浏览器在加载纯XML文件时执行此操作。我正在寻找如何在JavaScript中在客户端执行此操作。
使用JScript创建XML查看器 - Exsead XML Power Scripting
<
显示XML文件
更新:
似乎有一个比我多年前列出的更好,更易于使用的替代方案:
希望他们帮忙。
How to display a XML document in a HTML page as a collapsible and expandable tree?
I'd like to display a XML document inside a HTML page as a nicely pretty printed tree structure. I'd like to be able to expand and collapse tree branches. For example Firefox browser does this when you load a plain XML file. I am looking how to do this in client-side with JavaScript.
Creating An XML Viewer With JScript - Exsead XML Power Scripting
Display XML Files with Javascript
Update:
There seems to be a better and easier-to-use alternative than what I listed above many years ago:
Hope they help.
这篇关于如何使用Javascript在HTML页面中显示XML作为可折叠和可展开的树?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!