SyntaxFix
Write A Post
Hire A Developer
Questions
This link tells you how.
The magic is the getResourceAsStream() method :
InputStream is = this.getClass().getClassLoader().getResourceAsStream("yourpackage/mypackage/myfile.xml")