I have a large number of files (several thousand XML files), and I need to write a graphical interface in java that sorts these files in a tree structure based on the "Category" elements in the XML data of each file. This program can be run several times a day, and small changes / additions can be made to these files daily.
How to save this sorted structure in such a way as to minimize load time on subsequent launches of the application? This program, unfortunately, will work with files on the USB hard drive, so I try to avoid parsing each XML document every time the application starts to build this tree.
For example, each XML file may have several attributes (ie, "Person" with the value "Fred" and "Organization" with the value "Google"), and I would like to allow the user to select file groups based on these category values โโin the GUI .
Thank you in advance for your help and any help =)
source share