Re: Grammar returned from XMLGrammarPreparser.preparseGrammar()

2007-06-23 Thread Michael Glavassevich
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

Grammar returned from XMLGrammarPreparser.preparseGrammar()

2007-06-21 Thread podgeen
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