dcsimg

How can I map a DOM tree to javax.swing.tree.TreeNode or some object so that I can view an XML document as JTree?

Seok-jeong Hwang

You can transform an XML document to a JTree because XML has a tree structure. You can get information from Sun's XML tutorial

http://java.sun.com/xml/docs/tutorial/dom/4_tree.html

This page is one of the tutorials about manipulating DOM trees.