• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Transform DOM to JTree

 
m pap
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the DOMEcho examples in the java tutorial do that.
 
m pap
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic