I need to load the xml file present in the classpath into my java application. Can anyone give suggestions on this.
Thank youNarendra
Use ClassLoader.getResourceAsStreamor Class.getResourceAsStream, and then download it as you would for others InputStream.
ClassLoader.getResourceAsStream
Class.getResourceAsStream
InputStream
( ClassLoader Class , "" . ClassLoader , Class , "/", .)
ClassLoader
Class