title: Aspose.Words - merge two documents at specific location
body: <p>using ASPOSE.WORDS (.Net) i am trying to merge two RTF documents one within another.</p>
  
  <p>I would like to have an entire document replace a string of text in the second document.</p>
  
  <p>So far i've been able to concatenate two documents but that's not exactly what i'm after.</p>
  
  <pre><code>const string BOOKMARK = @"UNIQUE_STRING"; //UNUSED at the moment
  
  Aspose.Words.Document dWords = new Aspose.Words.Document(@"C:\RTFM\test1.rtf", LoadFormat.Rtf,"");
  Aspose.Words.Document dWords2 = new Aspose.Words.Document(@"C:\RTFM\test2.rtf", LoadFormat.Rtf, "");
  
  ImportFormatMode mode = ImportFormatMode.KeepSourceFormatting;
  
  foreach (Section srcSection in dWords2)
  {
      Node dstSection = dWords.ImportNode(srcSection, true, mode);
      dWords.AppendChild(dstSection);
  }
  
  dWords.Save(@"C:\output.rtf")
  </code></pre>