I have some XML files that are packaged in a EAR file and deployed to Websphere AppServer.
Ex: WEB-INF/classes/XMLDir/test.xml
I have to find the location of these files ( relative to Webspere classes dir ) and Parse through these files.
The below code is not finding xml files (returning NULL ) and throwing Exception.
String xmlFile = "XMLDir/test.xml";
InputStream input = this.getClass().getResourceAsStream(xmlFile);
How can I find these xml files, so that I can parse through these files.