On 10/29/06, James M Snell <[EMAIL PROTECTED]> wrote:
Yeah, I was toying around with the idea of using a WeakHashMap inside ExtensionFactoryMap. That should be enough to avoid the potential leak issue. The other alternative would be to tie ExtensionFactoryMap to the Document rather than to the Factory, but even that runs into a number of potential issues.
Yeah, you could still retain references if you parsed a document and then removed extension elements from it. I think the WeakHashMap approach is probably best. -garrett
