View Single Post
  #4 (permalink)  
Old February 5th, 2008, 01:27 PM
Martin Honnen Martin Honnen is offline
Friend of Wrox
Points: 6,676, Level: 34
Points: 6,676, Level: 34 Points: 6,676, Level: 34 Points: 6,676, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2007
Location: Germany
Posts: 1,243
Thanks: 0
Thanked 245 Times in 244 Posts
Default

That does not have anything to do with XSLT.
In some DOM implementations you cannot move nodes from one document to another, you need to use ImportNode or AdoptNode.
So assuming you are using the DOM implementation in .NET try
Code:
oTrans.SelectSingleNode("File/Result").AppendChild(oTrans.ImportNode(oTemp.SelectSingleNode("//"), true))
assuming that oTrans is an XmlDocument, or otherwise
Code:
oTrans.SelectSingleNode("File/Result").AppendChild(oTrans.OwnerDocument.ImportNode(oTemp.SelectSingleNode("//"), true))
Reply With Quote