Demo: Microsoft XML Data Source Object Applet
The com.ms.xml.dso package contains an applet called XMLDSO
that can be used as an XML data provider in conjunction with the
data binding features of Internet Explorer 4.0.
for binding XML data to HTML element on the page.
The APPLET tag usually has the following structure:
<APPLET
code="com.ms.xml.dso.XMLDSO.class"
id="xmldso"
width="0"
height="0"
mayscript>
<PARAM NAME="URL" VALUE="...">
<--...optional inline XML...-->
</APPLET>
Note: If you want to see debugging information displayed by
the applet, give the applet a non-zero width and height.
The APPLET parameters are as follows:
URL |
A relative or absolute URL that points to
an XML file. Typically, this data comes from the same place as the
HTML page containing the APPLET tag. In fact, Java security requires
this unless it is an absolute HTTP address, in which case any HTTP
address is OK.
|
inline XML |
The XML can be placed inside the APPLET
so that you don't have to make another HTTP request to get the data.
Example 2 shows this in action.
|
The following example pages show how the applet works:
- Example 1:
A simple HTML table populated by an external XML file
- Example 2:
The same table populated by inline XML data
- Example 3:
Nested HTML tables populated by hierarchical XML data
- Example 4:
Editing the XML using bound INPUT fields
- Example 5:
Report writer style of binding
- Example 6:
Accessing the XML object model through JavaScript
- Example 7:
Viewing XML data one record at a time using the recordset object model
- Example 8:
Linking multiple XML DSOs together using multiple HTML frames
- Example 9:
Hooking editable fields up to a live updating table
- Example 10:
Same as Example 7, but editable
Back to the XML Parser home page.