Hi Dave,
I'm guessing both schema1.xsd and schema2.xsd have the same target
namespace. The default XMLGrammarPool implementation (XMLGrammarPoolImpl)
caches one XSGrammar per namespace so will always return the XSGrammar
built for the first schema. An XMLGrammarPool doesn't have to work like
t
Hi there,
I'm working on some code that adds a set of schemas to an XMLGrammarPool
and then lock the pool. When an XML document is received it will attempt
to validate the XML using the corresponding schema from the pool. I'm
having some trouble implementing this which has lead me to the following