Word document compare - Enhancement Request to retrieve revisions from content controls(SDT)

Enhancement Request

The Aspose “Document.Revisions” API returns the List of Revisions when two Word documents compared using the compare API. we request to add the Revisions property to the content control to detect SDT changes faster.

Could you please look into this…
The sdt.Revisions feature would be a great addition to Aspose, as it would speed up the process of locating content control revisions.

Can you please take a look at this as an enhancement request on your side?

It will be helpful If you provide workaround while you analyze the request. Thanks.

@GZaha Thank you for your suggesting. We will consider providing such functionality. The feature request has been logged as WORDSNET-24257. We will keep you updated and let you know one it is implemented or we have more information for you.
As a workaround you can use the following code to get revisions of nodes inside SDT:

Document doc = new Document(@"C:\Temp\in.docx");

StructuredDocumentTag sdt = (StructuredDocumentTag)doc.GetChild(NodeType.StructuredDocumentTag, 0, true);
// Get child nodes of SDT.
List<Node> sdtChildNodes = sdt.GetChildNodes(NodeType.Any, true).ToList();

// Get revisions applied to the child nodes in the SDT.
List<Revision> sdtRevisions = doc.Revisions.Where(r => sdtChildNodes.Contains(r.ParentNode)).ToList();

// Aceept revisions in SDT.
foreach (Revision r in sdtRevisions)


The issues you have found earlier (filed as WORDSNET-24257) have been fixed in this Aspose.Words for .NET 23.1 update also available on NuGet.

@alexey.noskov could you please point me to the documentation for this fix?

@GZaha You can use Range.Revisions property to retrieve revision of the particular node.
Please see 23.1 release notes for more information: