It works.

Thanks!
  Tibor

On Thu, Nov 13, 2008 at 1:35 PM, Michael Glavassevich
<[EMAIL PROTECTED]>wrote:

> Have you tried setting it as the "resource-resolver" [1]?
>
> [1]
> http://xerces.apache.org/xerces2-j/javadocs/xs/org/apache/xerces/xs/XSLoader.html#getConfig()<http://xerces.apache.org/xerces2-j/javadocs/xs/org/apache/xerces/xs/XSLoader.html#getConfig%28%29>
>
> Michael Glavassevich
> XML Parser Development
> IBM Toronto Lab
> E-mail: [EMAIL PROTECTED]
> E-mail: [EMAIL PROTECTED]
>
> "Kiss Tibor" <[EMAIL PROTECTED]> wrote on 11/13/2008 05:50:22 AM:
>
>
> > 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