{"id":733,"date":"2014-09-29T19:05:52","date_gmt":"2014-09-29T19:05:52","guid":{"rendered":"https:\/\/alt2.minisoft.com\/support\/?p=733"},"modified":"2023-03-08T08:38:41","modified_gmt":"2023-03-08T16:38:41","slug":"node-data-block-variables","status":"publish","type":"post","link":"https:\/\/c002.minisoft.com\/support\/node-data-block-variables\/","title":{"rendered":"Node Data Block Variables (XML Input)"},"content":{"rendered":"<div>View the following tutorial: <a href=\"https:\/\/vimeopro.com\/user39510018\/minisoft-support\/video\/703868657\">https:\/\/vimeopro.com\/user39510018\/minisoft-support\/video\/703868657<\/a><\/div>\n<div><\/div>\n<div>For use with Extensible Markup Language (XML) data, this Form Variable is taken from the node location of the data in relation to parent or child elements in the data node tree. From the eFORMz Input Data Viewer, select the node, right click and select <em>Add Variable<\/em>.<\/div>\n<div><\/div>\n<div><a href=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2014\/09\/datanode_var1.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-737\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2014\/09\/datanode_var1.png\" alt=\"datanode_var1\" width=\"804\" height=\"319\" srcset=\"https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2014\/09\/datanode_var1.png 804w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2014\/09\/datanode_var1-300x119.png 300w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2014\/09\/datanode_var1-150x59.png 150w\" sizes=\"(max-width: 804px) 100vw, 804px\" \/><\/a><\/div>\n<div><\/div>\n<div>The Variable dialog box will display.<\/div>\n<div><\/div>\n<div><a href=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2014\/09\/datanode_var2.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-738\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2014\/09\/datanode_var2.png\" alt=\"datanode_var2\" width=\"492\" height=\"351\" srcset=\"https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2014\/09\/datanode_var2.png 492w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2014\/09\/datanode_var2-300x214.png 300w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2014\/09\/datanode_var2-150x107.png 150w\" sizes=\"(max-width: 492px) 100vw, 492px\" \/><\/a><\/div>\n<h3>Options include:<\/h3>\n<div><strong>Name<\/strong><\/div>\n<div>Variable name as displayed in the project layout.<\/div>\n<div><\/div>\n<div><strong>Data Node<\/strong><\/div>\n<div>The node location of the Variable in relation to parent or child elements in the data node tree.<\/div>\n<div><\/div>\n<div><strong>Transfer Method<\/strong><\/div>\n<div>There are seven methods:<\/div>\n<div><\/div>\n<div><em>Normal (any child elements as array)<\/em><\/div>\n<div>(Default) Will display any child elements as their own array, or indexed row of data within the parent element.<\/div>\n<div><\/div>\n<div><em>Count of child elements<\/em><\/div>\n<div>Provides a count of the child elements contained within the parent element.<\/div>\n<div>\n<div>\n<div><\/div>\n<div><em>Sum of child elements\u2019 data<\/em><\/div>\n<div>Calculates the sum of the child elements\u2019 data contained within the parent element.<\/div>\n<div><\/div>\n<div><em>Concatenation of child elements\u2019 data<\/em><\/div>\n<div>Concatenates all of the child elements\u2019 data contained within the parent element.<\/div>\n<div><\/div>\n<div><em>Concatenation of child elements\u2019 data (comma delimited)<\/em><\/div>\n<div>Concatenates all of the child elements\u2019 data contained within the parent element. Each element\u2019s value is delimited by a comma.<\/div>\n<div><\/div>\n<div><em>Concatenation of child elements\u2019 data (new line delimited)<\/em><\/div>\n<div>Concatenates all of the child elements\u2019 data contained within the parent element. Each element\u2019s value is delimited by a new line.<\/div>\n<div><\/div>\n<div><em>Value of child node of a parent node<\/em><\/div>\n<div><\/div>\n<div><em> Node and all subnodes<\/em><br \/>\nCreates a deep copy of the desired XML subnode.<\/div>\n<div><\/div>\n<div><strong>Text Processing<\/strong><\/div>\n<div><\/div>\n<div><em>None<\/em><\/div>\n<div>(Default) Keeps the default text processing.<\/div>\n<div><\/div>\n<div><em>Trim<\/em><\/div>\n<div>Left and right trims a string of characters.<\/div>\n<div><\/div>\n<div><em>Normalize<\/em><\/div>\n<div>Trims space between strings, leaving one space between each string.<\/div>\n<div><\/div>\n<div><strong>Node Filter<\/strong><\/div>\n<div>The Node Filter filters for an element\u2019s descendants. It allows grandchildren and great grandchildren to be parsed out.<\/div>\n<div><\/div>\n<div><strong>Match Filter<\/strong><\/div>\n<div>Matches against the child node to retrieve the value of an XML node conditionally.<\/div>\n<div><\/div>\n<div><strong>Match Value<\/strong><\/div>\n<div>Match Value is a wildcard to match against to retrieve the value of an XML node conditionally. When a match is found, the corresponding node value from &#8220;Node Filter&#8221; is used, with the exception of &#8220;Value of child node of parent node&#8221;.<\/div>\n<\/div>\n<\/div>\n<div><\/div>\n<div><strong><em>Example of using Node Filter, Match Filter and Match Value<\/em><\/strong><\/div>\n<div><\/div>\n<div>Let&#8217;s say the goal is to extract the value located at <strong>ShipmentData\/Documents\/Document\/Data<\/strong> in our XML, but ONLY if <strong>ShipmentData\/Documents\/Document\/Name<\/strong> is &#8220;COMMERCIAL_INVOICE&#8221;<\/div>\n<div><\/div>\n<div><\/div>\n<div><a href=\"https:\/\/minisoft.com\/support\/wp-content\/uploads\/2014\/09\/node.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-10503\" src=\"https:\/\/minisoft.com\/support\/wp-content\/uploads\/2014\/09\/node-300x263.png\" alt=\"\" width=\"300\" height=\"263\" srcset=\"https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2014\/09\/node-300x263.png 300w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2014\/09\/node-150x131.png 150w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2014\/09\/node.png 489w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/div>\n<div>\n<div>\n<div><\/div>\n<div><strong>Include variable in XML output<\/strong><\/div>\n<div>For use with eDIRECT when checked, default unchecked. Variable names cannot include special characters such as !, @, $, &amp;, * when this option is selected. This selection option only pertains to projects configured using the \u2018old\u2019 eDIRECT Wizard method of generating output.<\/div>\n<div><\/div>\n<div><strong>Use as a bookmark in PDF output<\/strong><\/div>\n<div>Variable will be bookmarked for pdf file output.<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>View the following tutorial: https:\/\/vimeopro.com\/user39510018\/minisoft-support\/video\/703868657 For use with Extensible Markup Language (XML) data, this Form Variable is taken from the node location of the data in relation to parent or child elements in the data node tree. From the eFORMz Input Data Viewer, select the node, right click and select Add Variable. The Variable dialog [&hellip;]<\/p>\n","protected":false},"author":75,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,7],"tags":[100],"_links":{"self":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/733"}],"collection":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/users\/75"}],"replies":[{"embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/comments?post=733"}],"version-history":[{"count":23,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/733\/revisions"}],"predecessor-version":[{"id":10504,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/733\/revisions\/10504"}],"wp:attachment":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/media?parent=733"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/categories?post=733"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/tags?post=733"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}