The moose likes XML and Related Technologies and the fly likes JTree and xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "JTree and xml" Watch "JTree and xml" New topic

JTree and xml

Krithika Beri
Ranch Hand

Joined: Sep 11, 2012
Posts: 36
I have a very big xml file which i am parsing using DOM parser. Now I want that whenever I click on a node in the JTree, it should return to me the corresponding xml node so that i can make the required changes in that. Could you please tell me how to go about it
Paul Clapham

Joined: Oct 14, 2005
Posts: 19747

You mean like in this Oracle tutorial? Constructing a User-Friendly JTree from a DOM
I agree. Here's the link:
subject: JTree and xml
It's not a secret anymore!