Hi,

I have a sourcecode which used org.apache.xerces.xs.XSLoader

            System.setProperty(DOMImplementationRegistry.PROPERTY,
"org.apache.xerces.dom.DOMXSImplementationSourceImpl");
            DOMImplementationRegistry registry =
DOMImplementationRegistry.newInstance();
            XSImplementation impl =
(XSImplementation)registry.getDOMImplementation("XS-Loader");
            XSLoader s_xsLoader = impl.createXSLoader(null);
            DOMConfiguration config = s_xsLoader.getConfig();
            DOMErrorHandler errorHandler = new TGErrorHandler();
            config.setParameter("error-handler", errorHandler);
            config.setParameter("validate", Boolean.TRUE);

I would like to use Schema catalogs with XSLoader, but I cannot access
XMLSchemaLoader to setEntityResolver an instance of XMLCatalogResolver.

Somebody has a hint, how to use schema catalogs with XSLoader?

Regards,
Tibor

Reply via email to