Sriram M

Sriram M

  • NA
  • 1
  • 654

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

Oct 30 2015 5:02 AM
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.
      ---

       --

       ---

}