Hi Mikko, Mikko Honkala wrote: > Just one more quick question: if the document was loaded > & validated using a schema, is there currently any way to prevent schema reloading > in normalizeDocument()?
Well, not yet. But you can try to prototype it and submit a patch. Look at org.apache.xerces.dom.CoreDocumentImpl.copyConfigurationProperties method. In this method you have access to the parser grammar pool and you can retrieve the grammar used to validate this document. Then create a DOMGrammarPool with this grammar and the grammar pool to the DOMValidationConfiguration (see org.apache.xerces.dom.CoreDocumentImpl.normalizeDocument()). That should stop re-loading of the grammar each time. Good luck, -- Elena Litani / IBM Toronto --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
