Understanding the Tabular Data Control (TDC)
The tabular data control is the easiest to understand. It accesses a simple text file and loops through its lines. Listing 21.2 is a simple text data store of details about three cats. It is stored as cats.txt. Note how the text file contains the same information as both cats.xml and the recordset.
Listing 21.2. Cats.txt Data File
Name, Age, Sex, Color Pierre, 9, m, Gray and white Hergie, 16,f, black Calloway, 2, m, gray |
This is simply four lines of text representing a recordset. The first line (or record) represents the headings of each field. The rest of the lines represent the values for each field. The tabular data control DSO will import this text file into an HTML page. Because it is an ...
Get XML Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.