{"id":2404,"date":"2016-03-02T02:44:10","date_gmt":"2016-03-02T02:44:10","guid":{"rendered":"http:\/\/www.ericwhite.com\/home2\/bm8qcmjy\/public_html\/blog\/?page_id=2404"},"modified":"2016-03-02T02:44:10","modified_gmt":"2016-03-02T02:44:10","slug":"screen-cast-replacing-elements-in-recursive-pure-functional-transforms-rpft-of-xml","status":"publish","type":"page","link":"https:\/\/www.ericwhite.com\/blog\/screen-cast-replacing-elements-in-recursive-pure-functional-transforms-rpft-of-xml\/","title":{"rendered":"Screen-Cast: Replacing Elements in Recursive Pure Functional Transforms (RPFT) of XML"},"content":{"rendered":"<p><span class=\"Back\"><a class=\"Back\" href=\"https:\/\/www.ericwhite.com\/blog\/recursive-pure-functional-transforms-series\/\">Return to the RPFT Screen-Cast Series<\/a><\/span>This is the fifteenth screen-cast in a series on writing Recursive Pure Functional Transformations (RPFT) of XML. In this screen-cast, we discuss transforming one particular element in an XML tree with a different element. We are, in effect, &#8216;replacing&#8217; an element from the original XML tree with a new element in the newly created XML tree.<\/p>\n<p>Return to the Table of Contents of this screen-cast series. To demonstrate this scenario, I transform a simple WordprocessingML document into an Html page. This transform is a pretty rudimentary transform &#8211; it&#8217;s main goal is to demonstrate the point of the screen-cast. It is not a comprehensive, high fidelity transform from WordprocessingML to HTML. That is going to come later!<\/p>\n<p>From here on, these screen-casts are more and more fun! If you are not having fun yet, the geek police are going to require you to turn in your pocket protector!<\/p>\n<p><iframe loading=\"lazy\" title=\"RPFT Replace Element\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/DQzawC81sKo?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 RPFT Screen-Cast SeriesThis is the fifteenth screen-cast in a series on writing Recursive Pure Functional Transformations (RPFT) of XML. In this screen-cast, we discuss transforming one particular element in an XML tree with a different element. We are, in effect, &#8216;replacing&#8217; an element from the original XML tree with a new element [&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-2404","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.ericwhite.com\/blog\/wp-json\/wp\/v2\/pages\/2404","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=2404"}],"version-history":[{"count":1,"href":"https:\/\/www.ericwhite.com\/blog\/wp-json\/wp\/v2\/pages\/2404\/revisions"}],"predecessor-version":[{"id":2419,"href":"https:\/\/www.ericwhite.com\/blog\/wp-json\/wp\/v2\/pages\/2404\/revisions\/2419"}],"wp:attachment":[{"href":"https:\/\/www.ericwhite.com\/blog\/wp-json\/wp\/v2\/media?parent=2404"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}