XML简明教程(9)什么是C XML DSO

<script type="text/javascript"> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>
<script type="text/javascript"> </script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>
Microsoft? Internet Explorer 5中内嵌了一个C 数据源对象( DSO),可以用来把 XML连接到HTML中。Microsoft? Internet Explorer 4中内嵌的Java XML DSO在Internet Explorer 5中仍然支持,但是新的C DSO有更好的性能,还可以直接连接 XML数据岛。

如何把XML连接到HTML上?

考虑下面的XML文件:

<universities>
  <university>
   <name>UCSB</name>
   <location>Santa Barbara, CA</location>
  </university>
  <university>
   <name>University of Texas at Arlington</name>
   <location>Arlington, TX</location>
  </university>
  <university>
   <name>USM</name>
   <location>Hattiesburg, MS</location>
  </university>
  <university>
   <name>Baylor</name>
   <location>Waco, TX</location>
  </university>
</universities>

可以用以下的HTML把这个XML连接到一个重复表中:

<XML ID=XMLDoc src="universities.XML"></XML>
<TABLE DATASRC="#XMLDoc" BORDER=1>
  <THEAD><TH>NAME</TH><TH>LOCATION</TH></THEAD>
  <TR>
   <TD><SPAN DATAFLD="name"></SPAN></TD>
   <TD><SPAN DATAFLD="location"></SPAN></TD>
  </TR>
</TABLE>

这里不需要<APPLET> 或 <OBJECT>标签,因为XML DSO已经为你完成了这些工作

<script type="text/javascript"> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>
<script type="text/javascript"> </script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值