Show Table from XML Data
SEAT NEEDED: Trial, Cockpit
When working with data, you likely want to display it in a table format. We have developed a shortcode for you, which allows you to identify the source (your XML data or URL) and provide instructions on which columns to display in the table.
Syntax
#XMLTABLE#{URL}#{startposition}#{numberofrows}#{instruction}#{columnname}:{alignment}:{length}#{columnname}:{alignment}:{length}#{columnname}:{alignment}:{length}…#
For example: #XMLTABLE#https://splitflaptv.com/FakeData.xml#1#0#1#Name:L:12#CEO:L:16#
this shortcode will show all company names and the name of their CEO on your display.
XML Table Short Code
Users can add real-time XML tables to their Split-Flap TV boards using these short codes. Note that the column notation like #columnname:alignment:length# can be repeated for as many columns as you want to use.
| Parameter | Meaning | Example |
| {URL} | Address of the XML file | https://splitflaptv.com/FakeData.xml |
| {startposition} | Fills the display starting with this row number. Typically, you start from row number 1 of your XML data, but maybe you want to use number 11 on the second page of your board if you have many rows. | 1 |
| {numberofrows} | Number of rows to be filled, counting from the start position value. When you use 5, then 5 rows from the starting position are filled on your screen. Set to 0 so that we can fill the board till the last line. | 0 |
| {instruction} | Special formatting options. Set value to 1 to add a space between 2 columns. Set to 0 to not add this space. | 1 |
| {columnname} | Fills the display starting with this row number. Typically, you start from row number 1 of your XML data, but maybe you want to use number 11 on the second page of your board if you have many rows. | company |
| {alignment} | How to align the value within the foreseen length of this column. Use L for left-aligned, R for right-aligned, and C for centered. | L |
| {length} | What is the number of characters that we have to use for this column? Shorter text is extended with spaces. Longer text is truncated. | 12 |