Tabular Data Binding with the XML DSO

It's as easy to bind the XML DSO to tables as it was to bind XML data islands to tables. Here's an example showing how this works. In this case, I'm just binding ch08_03.xml to a table using the XML DSO, and I'm displaying all the fields in the various records of ch08_03.xml at once:

Listing . ch08_08.html
 <HTML> <HEAD> <TITLE> Binding the XML DSO to Tables </TITLE> </HEAD> <BODY> <CENTER> <H1> Binding the XML DSO to Tables </H1> <APPLET CODE="com.ms.xml.dso.XMLDSO.class" ID="customers" WIDTH="0" HEIGHT="0" MAYSCRIPT="true"> <PARAM NAME="URL" VALUE="ch08_03.xml"> </APPLET> <TABLE DATASRC="#customers" CELLSPACING="10"> <THEAD> <TR> <TH>Name</TH> <TH>Customer ID</TH> <TH>Purchase Date</TH> <TH>Department</TH> ...

Get Real World XML 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.