{"id":4210,"date":"2016-08-04T18:01:55","date_gmt":"2016-08-04T18:01:55","guid":{"rendered":"https:\/\/alt2.minisoft.com\/support\/?p=4210"},"modified":"2016-12-02T22:34:39","modified_gmt":"2016-12-02T22:34:39","slug":"creating-a-table-using-xml-data","status":"publish","type":"post","link":"https:\/\/c002.minisoft.com\/support\/creating-a-table-using-xml-data\/","title":{"rendered":"Creating a Table Using XML Data"},"content":{"rendered":"<p>Variables from XML data are in arrays. As a result, creating a table from them is simpler in some ways. However, customizing the table requires modest configuration. This example includes a table of items in a packing slip. The columns are SKU, Item Name, Quantity, Price, and Total. The following image shows values for the first two columns in the Variables window:<img decoding=\"async\" loading=\"lazy\" class=\"size-medium wp-image-4213 aligncenter\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2016\/08\/XMLTable1-300x92.jpg\" alt=\"XMLTable1\" width=\"300\" height=\"92\" srcset=\"https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2016\/08\/XMLTable1-300x92.jpg 300w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2016\/08\/XMLTable1-768x236.jpg 768w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2016\/08\/XMLTable1-150x46.jpg 150w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2016\/08\/XMLTable1-250x77.jpg 250w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2016\/08\/XMLTable1-550x169.jpg 550w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2016\/08\/XMLTable1-585x180.jpg 585w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2016\/08\/XMLTable1.jpg 773w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>It is simple to create a basic table from XML data:<\/p>\n<ol>\n<li>Create a table and add a row.<\/li>\n<li>Add a cell, and add a paragraph to the cell.<\/li>\n<li>Right click the paragraph &gt; Add text &gt; Variable value.<\/li>\n<li>Select the variable from the list, and click OK.<\/li>\n<li>Repeat steps 2 through 4 to add additional columns.<\/li>\n<li>Adjust font, column widths, and other settings to meet your design requirements.<\/li>\n<\/ol>\n<p>The following image shows this basic table. By default, the columns have equal widths. The second column has quite a bit of text, so it is wrapped within its column:<img decoding=\"async\" loading=\"lazy\" class=\"size-medium wp-image-4215 aligncenter\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2016\/08\/XMLTable2-300x92.jpg\" alt=\"XMLTable2\" width=\"300\" height=\"92\" srcset=\"https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2016\/08\/XMLTable2-300x92.jpg 300w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2016\/08\/XMLTable2-150x46.jpg 150w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2016\/08\/XMLTable2-250x77.jpg 250w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2016\/08\/XMLTable2-550x169.jpg 550w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2016\/08\/XMLTable2-587x180.jpg 587w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2016\/08\/XMLTable2.jpg 613w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>The following steps put the second column on its own line, which saves space and increases readability:<\/p>\n<ol>\n<li>Right click the row &gt; Edit &gt; General.<\/li>\n<li>Click Repeat of \u00a0variable, select the variable that goes on a separate line, and click OK.<img decoding=\"async\" loading=\"lazy\" class=\"size-medium wp-image-4217 aligncenter\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2016\/08\/XMLTable3-1-300x284.jpg\" alt=\"XMLTable3\" width=\"300\" height=\"284\" srcset=\"https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2016\/08\/XMLTable3-1-300x284.jpg 300w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2016\/08\/XMLTable3-1-150x142.jpg 150w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2016\/08\/XMLTable3-1-250x237.jpg 250w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2016\/08\/XMLTable3-1-190x180.jpg 190w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2016\/08\/XMLTable3-1-317x300.jpg 317w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2016\/08\/XMLTable3-1.jpg 502w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/li>\n<li>Right click the first cell in the table &gt; Add Document Component &gt; Table. Click OK.<\/li>\n<li>Add a row to the table.<\/li>\n<li>Drag the second cell below the new row and drop it there.<\/li>\n<li>In the Viewer, click the item description and drag the frame to the full width of the label:<img decoding=\"async\" loading=\"lazy\" class=\"size-medium wp-image-4218 aligncenter\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2016\/08\/XMLTable4-300x64.jpg\" alt=\"XMLTable4\" width=\"300\" height=\"64\" srcset=\"https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2016\/08\/XMLTable4-300x64.jpg 300w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2016\/08\/XMLTable4-150x32.jpg 150w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2016\/08\/XMLTable4-250x53.jpg 250w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2016\/08\/XMLTable4-550x117.jpg 550w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2016\/08\/XMLTable4.jpg 651w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/li>\n<li>For better readability, you can change the font of the description to bold.<\/li>\n<li>Save your changes.<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Variables from XML data are in arrays. As a result, creating a table from them is simpler in some ways. However, customizing the table requires modest configuration. This example includes a table of items in a packing slip. The columns are SKU, Item Name, Quantity, Price, and Total. The following image shows values for the [&hellip;]<\/p>\n","protected":false},"author":12,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[105,1,58],"tags":[132],"_links":{"self":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/4210"}],"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\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/comments?post=4210"}],"version-history":[{"count":2,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/4210\/revisions"}],"predecessor-version":[{"id":4219,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/4210\/revisions\/4219"}],"wp:attachment":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/media?parent=4210"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/categories?post=4210"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/tags?post=4210"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}