how to merge a text-fragment into a DOM?
843834Jun 9 2005 — edited Jun 9 2005Hi
I have a document, that I want to transform by adding a couple of nodes (some ~10 or so) at a specific place in the original node-tree. The nodes are comming from an inputstream, thus I can not programatically use node.appendChild( ).
When I try to just append a documentFragement, I get DOMException: WRONG_DOCUMENT_ERR, indicating that I can not insert a fragment not originating from the original document.
There must be a stupid and simple way to do this, only that I don't know it...
anyone?
/Marcus