This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Transform DOM to JTree
 
It's not a secret anymore!