0
Answer

Copying one xml docu into another xml doucment using c# code

Ask a question
Sriram M

Sriram M

8y
342
1
Hi,
        I wanted to copy one xml document object to another xml document at specified xml element.
       can any one please help me.
      sample code:


public void GenerateFooterTablixcode(XmlDocument sourcedoc,XmlElement reportItems)

{
   XmlDocument copydoc = new XmlDocument();
     copydoc.Load(@"C:\Users\Documents\Visual Studio 2010\Projects\Report Project1\RdlGeneration\XMLFile1.rdl");

     ---code to copy the copydoc xml doucment object to reportItems xmlElement of XmlDocument.
      ---

       --

       ---

}