Hi Denis,
Try some thing like this :
public void readFile() throws Exception
{
ClassLoader loader = ClassLoader.getSystemClassLoader ();
InputStream is = loader.getResourceAsStream ("myxml.xml");
URL schemaURL = loader.getResource("myxml.xml");
}
Then wrap the above into something that suits your requirement , it might be one from the list below.
Possible values for schema source property :
*A
string that points to the URI of the schema
*An InputStream with the contents of the schema
*A SAX InputSource
*A File
*An array of Objects, each of which is one of the types defined here
Hope this helps.
Regards
Bajji Pat