- public XMLSchema(String aSystemId, InputStream aIs, LSResourceResolver aResolver) throws XMLException {
- initialize(aSystemId, aIs, aResolver);
+ public XMLSchema(String aSystemId, LSResourceResolver aResolver)
+ throws XMLException {
+ LSInput input = aResolver.resolveResource(null, null, null, aSystemId,
+ null);
+ if (input == null) {
+ throw new XMLException("Schema classpath resource '" + aSystemId +
+ "' not found");
+ }
+ InputStream is = input.getByteStream();
+ initialize(aSystemId, is, aResolver);