{"id":5828,"date":"2017-12-08T00:14:35","date_gmt":"2017-12-08T00:14:35","guid":{"rendered":"https:\/\/alt2.minisoft.com\/support\/?p=5828"},"modified":"2020-07-01T14:00:10","modified_gmt":"2020-07-01T21:00:10","slug":"returning-xml-from-a-project","status":"publish","type":"post","link":"https:\/\/c002.minisoft.com\/support\/returning-xml-from-a-project\/","title":{"rendered":"Returning XML from a Project"},"content":{"rendered":"<p>eFORMz has the capability to accept XML as input, send XML as output or create XML. In other words, XML can be created inside of eFORMz and passed to another eFORMz project.<\/p>\n<h2>Example<\/h2>\n<p>Prequisites:<\/p>\n<p><a href=\"\/support\/index.php\/record-element\/\">Record Element<\/a><br \/>\n<a href=\"\/support\/index.php\/text-to-xml\/\">Text To XML<\/a><\/p>\n<p>eFORMz can turn the PDF&#8217;s into text and then into XML. This process is referred to as &#8220;<a href=\"\/support\/index.php\/text-to-xml\/\">Text To XML<\/a>.&#8221; There are times where the value of the information may not be given and you will need an XML variable set to blank for that data. Below is an example.<\/p>\n<p><a href=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML1.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-5835\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML1.png\" alt=\"\" width=\"460\" height=\"115\" srcset=\"https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML1.png 460w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML1-300x75.png 300w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML1-150x38.png 150w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML1-250x63.png 250w\" sizes=\"(max-width: 460px) 100vw, 460px\" \/><\/a><\/p>\n<p>Note that \u201cIs Gift?\u201d and \u201cWHSE ID:\u201d have no value. The ProcessDate and PaymentMethod XML variables are created, but \u201cIs Gift\u201d and \u201cWHSE ID\u201d are not. We want a \u201cIs Gift\u201d and \u201cWHSE ID\u201d XML variable even when there is no data passed in for those fields.<\/p>\n<p><a href=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML2.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-5839\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML2.jpg\" alt=\"\" width=\"363\" height=\"30\" srcset=\"https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML2.jpg 363w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML2-300x25.jpg 300w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML2-150x12.jpg 150w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML2-250x21.jpg 250w\" sizes=\"(max-width: 363px) 100vw, 363px\" \/><\/a><\/p>\n<p>To accommodate this, create a <a href=\"\/support\/index.php\/record-element\/\">record element<\/a> to manually create the XML to send as output to another eFORMz Project. Right click on the form and select Add Record Element.<\/p>\n<p><a href=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML3.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-5845\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML3.png\" alt=\"\" width=\"315\" height=\"378\" srcset=\"https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML3.png 315w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML3-250x300.png 250w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML3-125x150.png 125w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML3-150x180.png 150w\" sizes=\"(max-width: 315px) 100vw, 315px\" \/><\/a><\/p>\n<p>For the root node, select \u2018No repeat\u2019. XML only allows one root node.<\/p>\n<p><a href=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML4.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-5848\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML4.png\" alt=\"\" width=\"509\" height=\"219\" srcset=\"https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML4.png 509w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML4-300x129.png 300w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML4-150x65.png 150w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML4-250x108.png 250w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML4-418x180.png 418w\" sizes=\"(max-width: 509px) 100vw, 509px\" \/><\/a><\/p>\n<p>The record element will be underneath the form.<\/p>\n<p><a href=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML5.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-5849\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML5.png\" alt=\"\" width=\"144\" height=\"37\" \/><\/a><\/p>\n<p>Create a \u201cchild element\u201d, which is the XML Tag.<\/p>\n<p><a href=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML6.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-5850\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML6.png\" alt=\"\" width=\"372\" height=\"193\" srcset=\"https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML6.png 372w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML6-300x156.png 300w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML6-150x78.png 150w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML6-250x130.png 250w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML6-347x180.png 347w\" sizes=\"(max-width: 372px) 100vw, 372px\" \/><\/a><\/p>\n<p>Name the XML tag.<\/p>\n<p><a href=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML7.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-5851\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML7.png\" alt=\"\" width=\"509\" height=\"219\" srcset=\"https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML7.png 509w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML7-300x129.png 300w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML7-150x65.png 150w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML7-250x108.png 250w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML7-418x180.png 418w\" sizes=\"(max-width: 509px) 100vw, 509px\" \/><\/a><\/p>\n<p>There is now a root node \u201cPackSlipData\u201d and a XML Tag \u201cPackSlip\u201d.<\/p>\n<p><a href=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML8.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-5852\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML8.png\" alt=\"\" width=\"179\" height=\"47\" srcset=\"https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML8.png 179w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML8-150x39.png 150w\" sizes=\"(max-width: 179px) 100vw, 179px\" \/><\/a><\/p>\n<p>To put data into these XML tags we need to add \u201cContent\u201d. For example, adding content to \u201cGiftFlag\u201d.<\/p>\n<p><a href=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML9.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-5853\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML9.png\" alt=\"\" width=\"460\" height=\"276\" srcset=\"https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML9.png 460w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML9-300x180.png 300w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML9-150x90.png 150w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML9-250x150.png 250w\" sizes=\"(max-width: 460px) 100vw, 460px\" \/><\/a><\/p>\n<p>Use constant text or a variable. It&#8217;s also possible create a variable that is blank unless information is added in from the input. This solves the problem of \u201cGiftFlag\u201d and \u201cWHSE ID\u201d.<\/p>\n<p><a href=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML10.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-5854\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML10.png\" alt=\"\" width=\"352\" height=\"194\" srcset=\"https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML10.png 352w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML10-300x165.png 300w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML10-150x83.png 150w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML10-250x138.png 250w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML10-327x180.png 327w\" sizes=\"(max-width: 352px) 100vw, 352px\" \/><\/a><\/p>\n<p>The result will look like this in the \u201cProject\u201d Tab, defaulted to on the left.<\/p>\n<p><a href=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML11.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-5855\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML11.png\" alt=\"\" width=\"262\" height=\"118\" srcset=\"https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML11.png 262w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML11-150x68.png 150w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML11-250x113.png 250w\" sizes=\"(max-width: 262px) 100vw, 262px\" \/><\/a><\/p>\n<p>The final step is to call this project from another project in a preprocessor. Right click on the project and select Add Preprocessor &gt; Project.<\/p>\n<p><a href=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML12.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-5856\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML12.png\" alt=\"\" width=\"531\" height=\"463\" srcset=\"https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML12.png 531w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML12-300x262.png 300w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML12-150x131.png 150w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML12-250x218.png 250w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML12-206x180.png 206w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML12-344x300.png 344w\" sizes=\"(max-width: 531px) 100vw, 531px\" \/><\/a><\/p>\n<p>The Project Preprocessor Properties dialog box will display. Select the previous project that we used to create the XML. Make sure the output format of the project is selected for XML.<\/p>\n<p><a href=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML13.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-5857\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML13.png\" alt=\"\" width=\"395\" height=\"150\" srcset=\"https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML13.png 395w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML13-300x114.png 300w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML13-150x57.png 150w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML13-250x95.png 250w\" sizes=\"(max-width: 395px) 100vw, 395px\" \/><\/a><\/p>\n<p>Created XML has been added into another project.<\/p>\n<p><a href=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML14.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-5858\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML14.png\" alt=\"\" width=\"202\" height=\"38\" srcset=\"https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML14.png 202w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2017\/12\/ReturnXML14-150x28.png 150w\" sizes=\"(max-width: 202px) 100vw, 202px\" \/><\/a><\/p>\n<p>NOTICE:<\/p>\n<p>This will not show up in eFORMz unless you pass input data into eFORMz.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>eFORMz has the capability to accept XML as input, send XML as output or create XML. In other words, XML can be created inside of eFORMz and passed to another eFORMz project. Example Prequisites: Record Element Text To XML eFORMz can turn the PDF&#8217;s into text and then into XML. This process is referred to [&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,58],"tags":[314,6,266,132],"_links":{"self":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/5828"}],"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=5828"}],"version-history":[{"count":12,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/5828\/revisions"}],"predecessor-version":[{"id":8175,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/5828\/revisions\/8175"}],"wp:attachment":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/media?parent=5828"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/categories?post=5828"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/tags?post=5828"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}