Hi,
Am doing appending of a set of docx files in to one docx. For that actually, am opening the document.xml file of each docx and appending each of the child node(<w:p>) of body node to a new master document .docx main document part's xml document. when i do that, the special characters ( like ', ", ‘, ’) are getting replaced with a series of ? symbols like "'" = "???"( single quote with 3 "?" symbols).
the following is the code snippet used for appending the nodes from child bosy node.
foreach (XmlNode childNode in childBodyNode.ChildNodes)
{
masterBodyNode.AppendChild(masterDocument.ImportNode(childNode, true));
}
After that,
SetStringContentOfPart(masterDocumentPart, masterDocument.OuterXml);
sets the master document part with the xml content of the document.
any idea, why simply importing a node in to a document would change the innerXml of a node at nth level .
Thanks in advance.
Manjunath.