Hi there. I am struggling reading this condition using Aspose.Words. I need to be able to find all the equation fields, then read out the MERGEFIELDS that are child nodes of that equation. How would I iterate through the child MERGEFIELDs of the equation field?
Doc: testdoc.zip (9.2 KB)
@Robert343
We suggest you please read the Aspose.Words document object model from here:
Aspose.Words Document Object Model (DOM)
The attached screenshot shows the DOM of your document.
DOM.png (4.5 KB)
You can iterate over inline nodes between FieldStart and FieldEnd of equation field to get the mail merge fields. You can use Node.NextSibling property to get the node immediately following this node.