Break Mapping between Content Control and Custom XML Part & Avoid Duplication of Last Table Cell's Content C# .NET

The document contains table which has cell with content control. This content control bound to CustomXMLPart. This cell’s content get duplicated if following operations performed:

Document document = new Document("input.docx", loadOptions);
        document.UpdatePageLayout();
        foreach (StructuredDocumentTag sdt in document.GetChildNodes(NodeType.StructuredDocumentTag, true))
        {
            sdt.XmlMapping.Delete();
        }

The sample code and document to reproduce this issue is attached.DuplicateContentIssue.zip (22.2 KB)

The sample will take input.docx and generates output.docx and output.pdf file. Both files will show duplicated content in cell containing bullet.

@GZaha,

We have logged this problem in our issue tracking system with ID WORDSNET-21138. We will further look into the details of this problem and will keep you updated on the status of linked issue. We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSNET-21138) have been fixed in this Aspose.Words for .NET 20.11 update and this Aspose.Words for Java 20.11 update.