title: Reading Word Bookmarks using Open XML and C#
body: <p>I have read everything I can find that is even remotely related to this (including <a href="https://stackoverflow.com/questions/20929213/read-word-bookmarks">Read Word bookmarks</a>), but have not been able to get anything to work.</p>
  
  <p>I am trying to walk through a Word document that has bookmarks in it, and get the values for each of the bookmarks.  I can walk the document and get the names of the bookmarks, but cannot figure out how to get the value/text of the bookmark.</p>
  
  <p>Here is what I am using to get the bookmark names:</p>
  
  <pre><code>using (WordprocessingDocument wordDocument = WordprocessingDocument.Open(athleteFile, false))
  {
      foreach (BookmarkStart bookmark in wordDocument.MainDocumentPart.Document.Body.Descendants&lt;BookmarkStart&gt;())
      {       
          System.Diagnostics.Debug.WriteLine(bookmark.Name + " - " + bookmark.InnerText);
      }
  }
  </code></pre>