Don't try to do this project in one step. I suggest that you start with a test program to read the XML into a DOM, modify the DOM and write it out. Once you have that working it will be time to add the JTree display and user interaction.
The glass is neither half full or half empty. It is too big. But this tiny ad is just right:
global solutions you can do in your home or backyardhttps://coderanch.com/t/708587/global-solutions-home-backyard