xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon Tyler" <tylersi...@hotmail.com>
Subject Copying a Document
Date Fri, 02 Feb 2001 09:16:19 GMT

Hi,

I need to copy a Document before modifying the original. I did think 
cloneNode would do the job but apparently not - I need the copy to also copy 
attributes defaulted in an XML Schema.

importNode looks like the way to go but I can't get it to work. I've tried 
creating a new DocumentImpl object using the createDocument method in 
DOMIMplementation and then importing the node but it doesn't work! Does 
anyone have any code (Java) that can do this?

I'm using Xerces-J 1.2.3.

Many Thanks.

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


Mime
View raw message