We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Moving Revisions

I have one questions about moving revisions, as you can see in the document there is a few moving nodes.
I want to know what node is moved where. Is there a way to know that.

Document doc = new Document("aspose.docx");
Run run1 = (Run) doc.getChild(NodeType.RUN, 1, true);
Run run2 = (Run) doc.getChild(NodeType.RUN, 9, true);

System.out.println(run1.getText()+" "+run1.isMoveFromRevision());
System.out.println(run2.getText()+" "+run2.isMoveToRevision());

Is there a way to know that run2 is moved run1? We can compare text but is anything else we can do to make sure?
file: aspose.zip (8.8 KB)


@Saric Unfortunately, currently there is no other way. I have logged a feature request WORDSNET-23556 to make MoveRangeStart and MoveRangeEnd nodes public. These nodes have Name property, which seems can be used to identify sibling move ranges. We will deeply investigate the issue and let you know once it is resolved.