{"id":2299,"date":"2016-02-04T12:46:09","date_gmt":"2016-02-04T12:46:09","guid":{"rendered":"http:\/\/www.ericwhite.com\/home2\/bm8qcmjy\/public_html\/blog\/?page_id=2299"},"modified":"2017-01-16T13:15:07","modified_gmt":"2017-01-16T13:15:07","slug":"in-depth-exploration-of-wordprocessingml-fields","status":"publish","type":"page","link":"https:\/\/www.ericwhite.com\/blog\/in-depth-exploration-of-wordprocessingml-fields\/","title":{"rendered":"In-Depth Exploration of WordprocessingML Fields"},"content":{"rendered":"<p><span class=\"Back\"><a class=\"Back\" href=\"https:\/\/www.ericwhite.com\/blog\/introduction-to-wordprocessingml-series\/\">Return to the WordprocessingML Screen-Cast Series<\/a><\/span>WordprocessingML fields are an important construct of Open XML markup.  Hyperlinks, the TOC, dates, computed values, page references, and much more are represented by fields.  You cannot reliably retrieve a list of all hyper-links in a document without understanding fields and their markup.  You can retrieve a partial set of hyperlinks by iterating through external references, however, in some circumstances, a hyper-link is represented in the field markup only, and there is no external reference.<\/p>\n<p>To date, there has not been much in the way of content that explains fields and how to work with them.  In this post, I introduce the first video in a two-part series that explains how field markup works.  After posting the two videos, I will post some utility code that makes it easier to work with fields.  Finally, I will post some code that reliably retrieves all hyper-links in a document.<\/p>\n<p><iframe loading=\"lazy\" title=\"FieldsAndHyperlinks.mp4\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/8lt6hW4VEr0?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Return to the WordprocessingML Screen-Cast SeriesWordprocessingML fields are an important construct of Open XML markup. Hyperlinks, the TOC, dates, computed values, page references, and much more are represented by fields. You cannot reliably retrieve a list of all hyper-links in a document without understanding fields and their markup. You can retrieve a partial set of [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"_s2mail":"","footnotes":""},"class_list":["post-2299","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.ericwhite.com\/blog\/wp-json\/wp\/v2\/pages\/2299","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ericwhite.com\/blog\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.ericwhite.com\/blog\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.ericwhite.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ericwhite.com\/blog\/wp-json\/wp\/v2\/comments?post=2299"}],"version-history":[{"count":6,"href":"https:\/\/www.ericwhite.com\/blog\/wp-json\/wp\/v2\/pages\/2299\/revisions"}],"predecessor-version":[{"id":4089,"href":"https:\/\/www.ericwhite.com\/blog\/wp-json\/wp\/v2\/pages\/2299\/revisions\/4089"}],"wp:attachment":[{"href":"https:\/\/www.ericwhite.com\/blog\/wp-json\/wp\/v2\/media?parent=2299"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}