Originally posted by Pho Tek:
YourClass.getClass().getResourceAsStream( .. ) will load it from the classpath
That would work if I could simply pass the InputStream to the parser, but I'm not aware of any way to do that.
For example, according to the JDOM docs, to tell the parser where the schema file is:
Where
weblog.xsd is the
file spec.
So, unless I'm missing something, it looks as though you have to specify the location as a file spec. But it seems like there
should be a mechanism built into the parser to load it from the classpath instead.
![](https://coderanch.com/images/smilies/jr-confused.gif)