File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Android Security Essentials Live Lessons this week in the Android 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: 18541

You mean like in this Oracle tutorial? Constructing a User-Friendly JTree from a DOM
It is sorta covered in the JavaRanch Style Guide.
subject: JTree and xml
Similar Threads
dynamic JTree
JTree SubTree