Title: RE: Including schema from jar file

Thanks, Andy,

Actually, it's exactly what I intend to do but problem is how to make xerces to take schema from InputStream?

-Dmitri

-----Original Message-----
From: Andy Clark [mailto:[EMAIL PROTECTED]]
Sent: August 30, 2001 1:18 PM
To: [EMAIL PROTECTED]
Subject: Re: Including schema from jar file


Dmitri Toubelis wrote:
> Does anybody knows an easy way to include schema from jar file into
> xml document. It seems like java URL doesn't work for that.

Use an EntityResolver that returns an InputSource created
from getClass().getResourceAsStream("..."). Or use getClass().
getClassLoader().getSystemResourceAsStream("...") if you want
to retrieve the resource from any place in the classpath.

--
Andy Clark * IBM, TRL - Japan * [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to