Hi Ajay,

The Validator knows what kind of Schema it was created with. It will only
call the LSResourceResolver if the Schema was created with
SchemaFactory.newSchema() (the one with no parameters). Whatever it loads
dynamically does get cached [1] (though might get flushed out at some point
in the future due to demand for memory).

Thanks.

[1]
http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/jaxp/validation/SoftReferenceGrammarPool.java?revision=699892&view=markup.

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrgla...@ca.ibm.com
E-mail: mrgla...@apache.org

ajay bhadauria <abhadau...@yahoo.com> wrote on 11/24/2009 05:30:58 PM:

> Michael,
>
> Thanks a lot, it works. I have a question for you.
>
> Is Validator smart enough to figure out when LSResourceResolver is
> giving compiled schema or uncompiled schema just to avoid compiling
> of schema at runtime ?
>
> Thanks
> Ajay

Reply via email to