Merge two Document.xml from two word docs using OpenXMLhttp://forums.asp.net/t/1798915.aspx/1?Merge+two+Document+xml+from+two+word+docs+using+OpenXMLThu, 03 May 2012 02:45:07 -040017989154960271http://forums.asp.net/p/1798915/4960271.aspx/1?Merge+two+Document+xml+from+two+word+docs+using+OpenXMLMerge two Document.xml from two word docs using OpenXML <p>I need to be able to take the original content of document.&nbsp; Then add the content from the document.xml from another document to the original document.&nbsp; I have been reading about OpenXML which I am required to use.&nbsp;&nbsp; I have found several right up but most require you to have a new template.&nbsp; But I can not do this.&nbsp; Is there a way to just copy the&nbsp; contents document.xml file from source file and append those contents to the a new paragragh in the other file. (Contents include any xml markup).</p> <p>&nbsp;</p> 2012-05-01T16:34:27-04:004960390http://forums.asp.net/p/1798915/4960390.aspx/1?Re+Merge+two+Document+xml+from+two+word+docs+using+OpenXMLRe: Merge two Document.xml from two word docs using OpenXML <p>Sure.</p> <p>Open the xmldocument and just grab the outerxml and cast it tostring</p> <p>dim doc as new xmldocument</p> <p>Dim s as string = doc.OuterXML.tostring</p> 2012-05-01T17:58:23-04:004962802http://forums.asp.net/p/1798915/4962802.aspx/1?Re+Merge+two+Document+xml+from+two+word+docs+using+OpenXMLRe: Merge two Document.xml from two word docs using OpenXML <p>Hi, you can try to achieve this with DataSet and XmlTextReader, please refer to the examples on the following link:</p> <p><a href="http://support.microsoft.com/kb/311530">http://support.microsoft.com/kb/311530</a></p> 2012-05-03T02:45:07-04:00