读书人

HTML调用XML文件在FF下面显示不出来

发布时间: 2012-04-19 14:36:43 作者: rapoo

HTML调用XML文件,在FF下面显示不出来
note.xml文件
--------------------
<?xml version= "1.0 " encoding= "ISO-8859-1 " ?>
<catalog>
<cd>
<title> 1 </title>
<artist> 2 </artist>
<country> 3 </country>
</cd>
<cd>
<title> 11 </title>
<artist> 22 </artist>
<country> 33 </country>
</cd>
<cd>
<title> 111 </title>
<artist> 222 </artist>
<country> 333 </country>
</cd>
<cd>
<title> 1111 </title>
<artist> 2222 </artist>
<country> 3333 </country>
</cd>
</catalog>


index.html
-------------------
<html>
<body>

<xml id= "cdcat " src= "note.xml "> </xml>

<table border= "1 " datasrc= "#cdcat ">

<tr>
<td name= "ll "> <span datafld= "artist "> </span> </td>
<td> <span datafld= "title "> </span> </td>
<td> <span datafld= "country "> </span> </td>
</tr>
<tr>
<td colspan= "3 "> √ </td>
</tr>
</table>
</body>
</html>

用index.html调用note.xml,这个在IE下面可以正确显示,而在FireFox下面却显示不出来了,不知道怎么回事....
请前辈们指点指点,小弟万分感谢...

[解决办法]
firefox不支持的
[解决办法]
Firefox还不支持数据岛
[解决办法]
有solution.但是这种solution不能处理xml data-island中数据绑定的问题
http://www.mozilla.org/xmlextras/xmldataislands/
[解决办法]
我也遇到这问题,也没有解决。倒是看看JSON做为数据源,很方便

读书人网 >XML SOAP

热点推荐