if (uri != null) {
schemaLocation = uri.getAbsoluteURI();
}
}
catch (URIException urix) {
throw new XMLException(urix);
}
}
else {
schemaLocation = namespace;
try {
uri = getURIResolver().resolveURN(namespace);
}
catch (URIException urix) {
throw new XMLException(urix);
}
if (uri == null) {
String err = "Unable to resolve Schema corresponding " +
"to namespace '" + namespace + "'.";
throw new SchemaException(err);