[jdom-interest] A Fast Way to Merge Documents
Aleksi Kallio
aleksi.kallio at infomates.net
Thu Dec 14 23:37:08 PST 2000
We read stuff from database to JDOM Documents and then merge them together to make content of a web-page (through XSLT-translation).
We use
doc1.getRootElement().addContent(doc2.getRootElement().getCopy("doc2"));
to merge documents. This seems to be very slow (because of copying?).
What would be the FAST way to combine two documents? After all, it could be just changing a few references. The answer could also be a bit of hack...
Are there any articles or references to JDOM performance issues?
More information about the jdom-interest
mailing list