I have a bit of an odd problem: basically, we a webapp that is built via JSP and reads theming text from XML nodes. After so many revisions here and there over the course of the project, we have many obsolete theme nodes (ones that are no longer being called in any of the JSPs). I have already managed to get a list of all the theme nodes in the XMLs, but I'm not sure how to figure out which ones are no longer being used.

Does anyone know any libaries to parse JSP files, or does anyone have any ideas that would be helpful?