return sb.toString();
}
protected static String getPackageNameFromURI(Locator pLocator, String pURI) throws SAXException {
if (pURI == null || pURI.length() == 0) {
throw new LocSAXException("Unable to derive package name from an empty namespace URI. Use the schemaBindings to specify a package name.", pLocator);
}
try {
URL url = new java.net.URL(pURI);
return getPackageNameFromURL(url);
} catch (MalformedURLException e) {
throw new LocSAXException("Unable to derive package name from an URI, which is no URL: " + pURI,
pLocator);
}
}