O'Reilly logo

Real World XML by Steven Holzner

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required