xml简明教程第9课:使用c++ xml dso

作者:未知 来源:未知 添加时间:2006年7月3日 字体:

什么是c++ xml dso? 
microsoft@ internet explorer 5中内嵌了一个c++数据源对象(dso),可以用来把xml连 
接到html中。microsoft@ internet explorer 4中内嵌的java xml dso在internet exp 
lorer 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="http://www.1fanwen.com/universities.xml"></xml> 
<table datasrc="http://www.1fanwen.com/#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已经为你完成了这些工作

ppdesk