CS99I Printing an XML file with the XMLDSO applet

Sample by Gio Wiederhold based [Sean McGrath: XML by Example; Prentice Hall, 1998.]

Applet

use listing (with comments)


<applet code=com.ms.xml.dso.XMLDSO.class
    width=100%
    height=50 (area, 50 pixels high, to display prograss and error messages)
    id=xmldso
>
<PARAM NAME="url" VALUE="../../movies/Hitch0.xml"> (Source XML file)
</applet>
<H2>Listing of all Hitchcock movies.</H2>
<TABLE ID=table WIDTH=100% datasrc=#xmldso> (we use the default table layout, full width)
<THEAD><TH>Title</TH><TH>Year</TH>
    <TH>Director</TH><TH>Producer(s)</TH>
      <TH>Studio</TH><TH>Notes</TH></THEAD>
    <TR><TD><DIV datafld=title></TD>
    <TD><DIV datafld="year"></TD>
    <TD><DIV datafld=dname></TD>
    <TD><DIV datafld=studio></TD>
    <TD><DIV datafld=notes></TD> (not all source fields are presented)
    </TR>
</TABLE>
<HR>
</BODY>
</HTML>

Execution


Listing of all Hitchcock movies.

TitleYear DirectorProducer(s) StudioNotes