XML Data Source XML就不多说了,在IE4.0中这样使用: APPLET CODE="com.ms.xml.dso.XMLDSO.class" ID="xmldso" WIDTH="0" HEIGHT="0" MAYSCRIPT="true"> PARAM NAME="URL" VALUE="composer.xml"> /APPLET>
Internet Explorer 5以上可以这样:
!--[if gte IE 5]> XML ID="xml1"> topic-info> page-type>reference/page-type> member-type>property/member-type> persistent-name>ACCESSKEY/persistent-name> runtime-name readable="1" writeable="1">accessKey/runtime-name> abstract>Sets or retrieves the accelerator key for the object./abstract> /topic-info> /XML> ![endif]-->
其中数据来源: OBJECT id="tdcComposers" CLASSID="clsid:333C7BC4-460F-11D0-BC04-0080C7055A83"> PARAM NAME="DataURL" VALUE="http://msdn.microsoft.com/workshop/samples/author/databind/composer.csv"> PARAM NAME="UseHeader" VALUE="True"> PARAM NAME="TextQualifier" VALUE="'"> /OBJECT> 绑定的table TABLE datasrc=#tdcComposers> THEAD>TR STYLE="font-weight:bold"> TD>First/TD>TD>Last/TD>TD>Birth/TD>TD>Death/TD>TD>Origin/TD> /TR>/THEAD> TBODY> TR> TD>DIV datafld="compsr_first">/DIV>/TD> TD>DIV datafld="compsr_last">/DIV>/TD> TD>DIV datafld="compsr_birth">/DIV>/TD> TD>DIV datafld="compsr_death">/DIV>/TD> TD>DIV datafld="origin">/DIV>/TD> /TR> /TBODY> /TABLE> 这就是效果了: First Last Birth Death Origin Hector Berlioz 1803 1869 France Modest Moussorgsky 1839 1881 Russia Franz Liszt 1811 1886 France Antonio Vivaldi 1678 1741 Italy Johann Sebastian Bach 1685 1750 Germany Ludwig van Beethoven 1770 1827 Germany Wolfgang Amadeus Mozart 1756 1791 Austria Joseph Haydn 1732 1809 Germany Claude Debussy 1862 1918 France
还可以这样用: SCRIPT Language="VBScript"> For Each objFld in rsAttendees.Fields document.write("The field name is " objFld.Name "BR>") document.write("The field value is " objFld.Value "BR>") Next /SCRIPT>