Meaningless Drivel is fun!*
The moose likes XML and Related Technologies and the fly likes Transform DOM to JTree Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Transform DOM to JTree" Watch "Transform DOM to JTree" New topic
Author

Transform DOM to JTree

m pap
Greenhorn

Joined: Jun 13, 2001
Posts: 13
HELP!!!
I have been trying to days now to figure out how to output a JTree from a DOM document. The implementation of this can not be specific. I want to be able to take any DOM document not knowing its values and output a JTree. Can anyone help, it is REALLY needed.
Thank you in advance, mpap
aude tantot
Ranch Hand

Joined: May 21, 2001
Posts: 39
the DOMEcho examples in the java tutorial do that.
m pap
Greenhorn

Joined: Jun 13, 2001
Posts: 13
I know but in the DomEcho it converts a DOM to JTree knowing the element values. What if you dont know them. You can not make an array of element names you just want it to be a generic method so that you can use it to make any tree conversion.
Thanks, m pap

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Transform DOM to JTree