Forum Moderators: open
It works fine if I save the file to my machine or my directory. Its the bog standard data island script
<html>
<body>
<xml id="cdcat" src="http://www.w3schools.com/xml/cd_catalog.xml"></xml>
<table border="1" datasrc="#cdcat">
<tr>
<td><span datafld="ARTIST"></span></td>
<td><span datafld="TITLE"></span></td>
</tr>
</table>
</body>
</html>
Can anyone point me in the right direction?
Thanks
Internet Explorer has a Security feature called "Access data sources across domains". This feature is "disabled" by default.
If you're planning this bit of code for a public webite (not an Intranet), then calling the XML source from another domain will continuely fail.
For XML Databinding, your XML source needs to come for the same website as the page.
Hope this helps. Cheers...
<html>
<head>
<xml src="http://www.w3schools.com/xml/cd_catalog.xml" id=msg></xml>
</head>
<body>
<table border=1 datasrc=#msg><thead>
<tr>
<td>Title</td>
<td>Arist</td>
<td>Country</td>
<td>Company</td>
<td>Price</td>
<td>Year</td>
</tr>
</thead>
<tr>
<td><span DATAFLD="TITLE"></td>
<td><span DATAFLD="ARTIST"></td>
<td><span DATAFLD="COUNTRY"></td>
<td><span DATAFLD="COMPANY"></td>
<td><span DATAFLD="PRICE"></td>
<td><span DATAFLD="YEAR"></td>
</tr>
</table>
</body>
</html>
//*****end here