You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Christian Bjørnbak <bj...@iuas.dk> on 2001/03/09 09:34:22 UTC
How to copy a DOM
Hi
How do I make a copy of a DOM??
Can I use the standard Java method clone() on Document??
/Christian
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org
Re: How to copy a DOM
Posted by René Jensen <lu...@tbkol.dk>.
Citat Christian Bjørnbak <bj...@iuas.dk>:
> Hi
>
> How do I make a copy of a DOM??
>
> Can I use the standard Java method clone() on Document??
>
> /Christian
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-user-help@xml.apache.org
>
>
According to the javaDoc for xerces 1.2.3API the class DocumentImpl uses the
clone() method, but it also has a cloneNode() method.
I don´t know witch one of these you shuold use, but give it a shoot.
(I don´t think that it´s possible to break anything).
_\|/_
(@ @)
---oOOo-(_)-oOOo---
René Jensen
lundeman@tbkol.dk
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org