I would like to add complete NodeList into xml document:
I get my NodeList from document1 as follow:
NodeList myNList=doc1.getElementsByTagName("APPLICATION");
This nodeList contains some nodes with many attributes and I would like to insert this nodeList into other document doc2 in node USER with the name "Nina"
doc2.xml:
<document>
<USER name="Nina">
// nodeList should be inserted here
</USER>
What is the best way do do this without having to create new elements/nodes in doc2?