How can I load an xml file and show it as a treeview control in my HTML page

Recommended Answers

All 3 Replies

i want to add tree view control "navigation map"
to my HTML document
the tree vuew control need to load from an XML file

Thanks

You need to parse XML file using some XML parser, I recommend JAXB, it is really flexible and object oriented. Then you have to pass parsed values into HTML - this can be done via implementing AJAX scripts on your pages (if you want live tree view) or just building static tree using loops in Java code and generating HTML to the front end.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.