Marco,

It is of course possible to add a clearDOM() method to the DOMImpl
class, but I doubt that it would help you much. The DOM takes long
to build because the input document has to be parsed and because
the DOMImpl$DOMBuilder inner class to populate the DOMImpl. The
time spent instanciating the DOMImpl class is minute in comparison.
I would rather focus on DOM caching (if feasible) and try to come
up with a decent implementation of the DOMCache interface. Sun's
alpha5 release and the latest Xalan release both contain a sample
implementation (dom/DocumentCache) of the DOMCache interface, but
it is not very flexible or efficient.

Morten


[EMAIL PROTECTED] wrote:
> 
> hi all,
>         is it possible to add a method  'clearDOM()' (if someone hasn't
> already done it) so that the DOMImpl class
> can be reused all the time??
> 
> thanx in advanc and regards
>         marco

Reply via email to