Re: Grammar caching with multiple schemas for the same target namespace

2017-01-31 Thread Patrik Stellmann
Thanks for the hint. My own implementation was already very close to that of SoftReferenceGrammarPool. However, even when using the exact implementation of SoftReferenceGrammarPool I still get an error for unknown root element when parsing the second document with a different schema. So the pro

Re: Grammar caching with multiple schemas for the same target namespace

2017-01-23 Thread Michael Glavassevich
Hi, I thought we (at least partially) addressed this issue in the JAXP 1.3 implementation. I'd suggest having a look at how the SoftReferenceGrammarPool [1] works, as its purpose is to cache grammars based on both their schema location and target namespace. Thanks. [1] http://svn.apache.org/