Word OpenXML . Traversing OpenXmlElements between bookmarks
问题 I need to traverse nodes between a bookmark start and a bookmark end tag. The problem appears to break down into a tree traversal but I am having trouble pinning down the correct algorithm. The bookmark start and end elements are non-composite nodes (no children) and may appear at an arbitrary depth in the tree. Bookmark start are also not guaranteed to be a at the same depth. If you draw the tree structure for the document I would want to examine all nodes between the start and end bookmark.