You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Ma...@nokia.com on 2001/06/06 13:29:46 UTC
XSLTC DOMImpl class
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
Re: XSLTC DOMImpl class
Posted by Morten Jorgensen <mo...@sun.com>.
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
Marco.Mistroni@nokia.com 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