>It seems from the javadoc that DTM's are considered read-only/

That's correct.

> it builds a new DTM for the DOM for every
>new XPathContext that is used, doesn't it?

Yes... although that may not be as much work as you'd expect. DOM2DTM
builds the DTM wrapper incrementally, and tries to leave as much data as
possible in the DOM rather than copying it over.

>I fear that this is quite slow

It seems acceptable so far. Run some tests and let us know...

Reply via email to