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.
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koophttps://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton