Is there any easy way in msxml to merge two xml documents (IXMLDomDocuments)? I want to make one of the trees embedded as a child of the second one.
I saw that IXMLDomDocument3 offers importNode, but couldn't get it to work correctly. Is this the way to go or is there another solution?
Thanks, Dan
What programming language are you using?
Here's a working example in Javascript:
Given A.xml:
B.xml:
merge.js:
The output is: