XML and JTree - Exact structure possible?
I've been trying to convert my JTree (which is completely editable by the user) into XML format, but currently not having much luck.
So far I have a Vector for holding the information on each node created (whether it is a leaf or not basically, the class also holds the TreePath of the node). And I was going to use the data from the Vector to try and develop my XML file.
I've been attempting to loop through every value of the Vector and add it to my XML document, but the problem arises when trying to add the nodes to their parents. With the availability of the TreePath of the node I was hoping that maybe someone could point me in the direction of using each value of the TreePath to get to the correct element.
I hope I've explained my situation well enough, I'll be watching this thread so ask any questions.
Thanks in advance!

