I need to process mergefields within specific bookmarks.
If I can get the FieldStart nodes that are between the start and End bookmark nodes, that would be perfect.
Given an approach I used to get all the fieldStarts from the document:
I initially tried something like
Dim myNode As Node = myBookmark.BookmarkStart
While Not (myNode.NodeType = NodeType.BookmarkEnd)
Dim temp As NodeCollection
temp = myNode.GetChildNodes(NodeType.FieldStart, True)
myNode = myNode.NextSibling
But “GetChildNodes” is regretfully only available on the document node itself.
Is there another way to get the FieldStart nodes I need?