{"id":5811,"date":"2017-12-07T21:32:01","date_gmt":"2017-12-07T21:32:01","guid":{"rendered":"https:\/\/alt2.minisoft.com\/support\/?p=5811"},"modified":"2020-07-01T13:58:36","modified_gmt":"2020-07-01T20:58:36","slug":"record-element","status":"publish","type":"post","link":"https:\/\/minisoft.com\/support\/record-element\/","title":{"rendered":"Record Element"},"content":{"rendered":"<p>A Record Element is the output type used to generate an XML file. You have complete control over the XML node structure, with namespaces, repeating elements, attributes on elements, wrapping data in a CDATA tag, and more. For background information on using XML with eFORMz, consult the following posts: <a href=\"\/support\/index.php\/getting-started-with-xml\/\">Getting Started with XML<\/a> and\u00a0<a href=\"\/support\/index.php\/working-with-xml-input\/\">Working with XML Input<\/a><\/p>\n<p>For more information on how to implement a record element, consult the following tutorial:\u00a0<a href=\"\/support\/index.php\/returning-xml-from-a-project\/\">Returning XML from a Project<\/a><\/p>\n<h2>The Node Tree<\/h2>\n<p>To output an XML file, the node tree must be structured. The root element cannot be repeating. If you try to set it to be repeating, that will be ignored and there will be only one root element. Only one root node is allowed. Conditions can be added to any part of the XML structure.<\/p>\n<p>1. To implement the Record Element, right click the form and select Add Record Element.<br \/>\n2. Enter a name.<\/p>\n<p><a href=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/RE-new.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-5818\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/RE-new.png\" alt=\"\" width=\"525\" height=\"228\" srcset=\"https:\/\/minisoft.com\/support\/wp-content\/uploads\/2017\/12\/RE-new.png 525w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2017\/12\/RE-new-300x130.png 300w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2017\/12\/RE-new-150x65.png 150w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2017\/12\/RE-new-250x109.png 250w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2017\/12\/RE-new-414x180.png 414w\" sizes=\"(max-width: 525px) 100vw, 525px\" \/><\/a><\/p>\n<p><strong>No repeat<\/strong><br \/>\n(Default) The element will not repeat.<br \/>\n<strong>Constant<\/strong><br \/>\nEnter a numeric value.<br \/>\n<strong>Repeat of variable<\/strong><br \/>\nThe element will repeat in relation to the instances of the variable selected from the drop-down menu.<\/p>\n<p>3. The Record Element will appear in the Project window and the Form Viewer (the bottom pane of the Viewer window).<br \/>\n4. Right click the Record Element and select Add &gt; Child element.<br \/>\n5. Enter a name for the child element.<br \/>\n6. To nest a child element within another one, right click the child element and select Add &gt; Child element.<\/p>\n<p><a href=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/RE-new1.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-5817\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/RE-new1.png\" alt=\"\" width=\"343\" height=\"191\" srcset=\"https:\/\/minisoft.com\/support\/wp-content\/uploads\/2017\/12\/RE-new1.png 343w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2017\/12\/RE-new1-300x167.png 300w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2017\/12\/RE-new1-150x84.png 150w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2017\/12\/RE-new1-250x139.png 250w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2017\/12\/RE-new1-323x180.png 323w\" sizes=\"(max-width: 343px) 100vw, 343px\" \/><\/a><\/p>\n<p>7. Enter a name for the child element. From the Repeat of variable drop-down menu, select the variable that this element is intended to express.<\/p>\n<p><a href=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/RE-new2.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-5819\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/RE-new2.png\" alt=\"\" width=\"521\" height=\"229\" srcset=\"https:\/\/minisoft.com\/support\/wp-content\/uploads\/2017\/12\/RE-new2.png 521w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2017\/12\/RE-new2-300x132.png 300w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2017\/12\/RE-new2-150x66.png 150w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2017\/12\/RE-new2-250x110.png 250w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2017\/12\/RE-new2-410x180.png 410w\" sizes=\"(max-width: 521px) 100vw, 521px\" \/><\/a><\/p>\n<p>8. Right click the child element and select Add &gt; Content.<br \/>\n9. Select the corresponding variable value from the Variable drop-down menu.<\/p>\n<p><a href=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/RE-new3.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-5820\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/RE-new3.png\" alt=\"\" width=\"365\" height=\"200\" srcset=\"https:\/\/minisoft.com\/support\/wp-content\/uploads\/2017\/12\/RE-new3.png 365w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2017\/12\/RE-new3-300x164.png 300w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2017\/12\/RE-new3-150x82.png 150w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2017\/12\/RE-new3-250x137.png 250w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2017\/12\/RE-new3-329x180.png 329w\" sizes=\"(max-width: 365px) 100vw, 365px\" \/><\/a><\/p>\n<p>10. Continue adding elements as necessary.<br \/>\n11. To output the Record Element to an XML file, navigate to the eFORMz Main Menu and select Run &gt; Output.<br \/>\n12. Name and save the file.<br \/>\n13. The Record Element will have generated an XML file.<\/p>\n<h2>Attribute<\/h2>\n<p>An Attribute is a named definition that provides accompanying information about an element.<\/p>\n<p>1. To add an Attribute, right click an element and select Add &gt; Attribute.<\/p>\n<p><a href=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/RE-new4.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-5822\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/RE-new4.png\" alt=\"\" width=\"332\" height=\"206\" srcset=\"https:\/\/minisoft.com\/support\/wp-content\/uploads\/2017\/12\/RE-new4.png 332w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2017\/12\/RE-new4-300x186.png 300w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2017\/12\/RE-new4-150x93.png 150w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2017\/12\/RE-new4-250x155.png 250w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2017\/12\/RE-new4-290x180.png 290w\" sizes=\"(max-width: 332px) 100vw, 332px\" \/><\/a><\/p>\n<p>2. Enter a name and select the variable from the drop-down menu for the attribute definition.<\/p>\n<h2>Content<\/h2>\n<p>Adding Content to an Element defines that particular Element with a selected value.<br \/>\n1. To add Content to an Element, right click the Element and select Add &gt; Content.<\/p>\n<p><a href=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/RE-new5.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-5823\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/RE-new5.png\" alt=\"\" width=\"345\" height=\"186\" srcset=\"https:\/\/minisoft.com\/support\/wp-content\/uploads\/2017\/12\/RE-new5.png 345w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2017\/12\/RE-new5-300x162.png 300w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2017\/12\/RE-new5-150x81.png 150w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2017\/12\/RE-new5-250x135.png 250w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2017\/12\/RE-new5-334x180.png 334w\" sizes=\"(max-width: 345px) 100vw, 345px\" \/><\/a><\/p>\n<p>2. Select the corresponding Variable value from the Variable drop-down menu.<\/p>\n<h2>Child Element<\/h2>\n<p>A Child Element is any Element nested underneath the Root, or Parent, Element at the beginning of a Record node tree. Child Element\u2019s encapsulate raw data, as well as data that has been modified through Functions and Procedures performed on Variables.<\/p>\n<p>1. To add a Child Element, right click the Record Element and select Add &gt; Child element.<\/p>\n<p><a href=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/RE-new6.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-5824\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/RE-new6.png\" alt=\"\" width=\"334\" height=\"187\" srcset=\"https:\/\/minisoft.com\/support\/wp-content\/uploads\/2017\/12\/RE-new6.png 334w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2017\/12\/RE-new6-300x168.png 300w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2017\/12\/RE-new6-150x84.png 150w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2017\/12\/RE-new6-250x140.png 250w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2017\/12\/RE-new6-321x180.png 321w\" sizes=\"(max-width: 334px) 100vw, 334px\" \/><\/a><\/p>\n<p>2. Enter a Name for the Child Element.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A Record Element is the output type used to generate an XML file. You have complete control over the XML node structure, with namespaces, repeating elements, attributes on elements, wrapping data in a CDATA tag, and more. For background information on using XML with eFORMz, consult the following posts: Getting Started with XML and\u00a0Working with [&hellip;]<\/p>\n","protected":false},"author":75,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[314,6,266,132],"_links":{"self":[{"href":"https:\/\/minisoft.com\/support\/wp-json\/wp\/v2\/posts\/5811"}],"collection":[{"href":"https:\/\/minisoft.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/minisoft.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/minisoft.com\/support\/wp-json\/wp\/v2\/users\/75"}],"replies":[{"embeddable":true,"href":"https:\/\/minisoft.com\/support\/wp-json\/wp\/v2\/comments?post=5811"}],"version-history":[{"count":9,"href":"https:\/\/minisoft.com\/support\/wp-json\/wp\/v2\/posts\/5811\/revisions"}],"predecessor-version":[{"id":8174,"href":"https:\/\/minisoft.com\/support\/wp-json\/wp\/v2\/posts\/5811\/revisions\/8174"}],"wp:attachment":[{"href":"https:\/\/minisoft.com\/support\/wp-json\/wp\/v2\/media?parent=5811"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/minisoft.com\/support\/wp-json\/wp\/v2\/categories?post=5811"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/minisoft.com\/support\/wp-json\/wp\/v2\/tags?post=5811"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}