I need to find and parse a file, but only a part of the path is constant across the computers in our environment. The file I am looking for is serverindex.xml and the constant part of the path is “E:\IBMWebSphere61\AppServer\profile”. Beyond that the path can be different for each box. I am looking for help with the relevance code to find the file and read its contents. Also, I have been told that there will always be multiple serverindex.xml files in different locations on each box. Thanks
You should be able to do this with relevance. I don’t have any experience with WebSphere or the folder structure. Could you provide a few examples of what the complete URL would look like? Is serverindex.xml always under a subfolder of E:\IBMWebSphere61\AppServer\profile ?
Also, could you provide a sample serverindex.xml and what values you would like from it?
It is always under a subfolder of E:\IBMWebSphere61\AppServer\profiles. Actually I should say they are under subfolders of this folder. The one example I have is E:\IBMWebSphere61\AppServer\profiles\DRILLERA004\config\cells\doccell\nodes\DRILLERA004Node\serverindex.xml. Within that xml file I am looking to get the lines that contain ‘’. That part I can see how to do using ‘lines containing’, I’m just confused about how to find the files in the first place.