[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xerces-j-dev
Subject:    Re: factory.newSchema(schemaLocation) freezes
From:       Andrew Welch <andrew.j.welch () gmail ! com>
Date:       2012-03-29 6:49:43
Message-ID: CAEG2duCs3CwUwVhCP8_6TgCuFxbf6t=_vqfxVeSBGbEgh+doLQ () mail ! gmail ! com
[Download RAW message or body]

On 29 March 2012 01:31, Danny Sinang <d.sinang@gmail.com> wrote:
> Is there a way to make newSchema () display what xsd's it has / is resolving
> or loading ?

It depends which api you are using, but you can supply your own
resolver to intercept the calls... for example using JAXP in Java 1.5
there is:

http://docs.oracle.com/javase/1.5.0/docs/api/javax/xml/validation/SchemaFactory.html#setResourceResolver(org.w3c.dom.ls.LSResourceResolver)


As it says in the description of that the method if your
resolveResource method just returns null, it will fall back to it's
usual resolver, however it will allow you to put a break point in
there to see whats going on or output some diagnostics.

-- 
Andrew Welch
http://andrewjwelch.com

---------------------------------------------------------------------
To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-users-help@xerces.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic