Hai
you can do so like this if you want to duplicate some nodes
Document doc = dom.getDocument();
Element clone = (Element)doc.getElementsByTagName("name").item(0);
Node cloned = (Element)doc.importNode(clone,true);
doc.getDocumentElement().appendChild(cloned);
the boolean argument in the importNode() method is set to true if you want all the subnodes and values ,If it's set to false,then you will get only an empty node
Hope it helps
Cheers
Palanikumar
------------------
In the end everything is Right,If it's not then It's not the End
[This message has been edited by Palani kumar (edited October 06, 2001).]