xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeffrey Rodriguez" <jeffreyr...@hotmail.com>
Subject Re: DOM Problems
Date Wed, 20 Sep 2000 15:14:09 GMT
Hi Michael!
You should use the ImportNode method from the Document class instead.
Hope this helps,
         Jeffrey Rodriguez
         IBM Silicon Valley
         XML Development

>From: Michael Kraus <michael.kraus@informatik.uni-muenchen.de>
>Reply-To: general@xml.apache.org
>To: general@xml.apache.org
>Subject: DOM Problems
>Date: Wed, 20 Sep 2000 11:06:50 +0200
>I'm experiencing a problem with the DOM (I'm using the Xerces-J DOM
>implementation). I'm writing a kind of XML editor where the user is able
>to select and copy nodes from one document tree and paste is into
>another. But when I try to add the copied nodes to the new document
>tree, I receive the following exception:
>org.apache.xerces.dom.DOMExceptionImpl: DOM005 Wrong document
>I use some code like this:
>How can I copy nodes from one document to another? Is there any solution
>within the DOM or within Xerces?
>In case of troubles, e-mail:     webmaster@xml.apache.org
>To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
>For additional commands, e-mail: general-help@xml.apache.org

Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 

View raw message