Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to merge a text-fragment into a DOM?

843834Jun 9 2005 — edited Jun 9 2005
Hi
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 7 2005
Added on Jun 9 2005
1 comment
110 views