Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
138
rated 0 times [  140] [ 2]  / answers: 1 / hits: 81984  / 15 Years ago, wed, september 2, 2009, 12:00:00

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.


More From » html

 Answers
141

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:



https://www.jstree.com/



Hope they help.


[#98779] Friday, August 28, 2009, 15 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
cullenmaxl

Total Points: 414
Total Questions: 112
Total Answers: 87

Location: United States Minor Outlying Island
Member since Sat, May 28, 2022
2 Years ago
;