XML Data Island in Mozilla

admin

Administrator
Staff member
Hello everyone,

I need help with XML. I've got an HTML file:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Share Price</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

</head>

<body>

<xml id="prices" src=http://www.webdeveloper.com/forum/archive/index.php/"prices.xml" stylesheet href="xml.css" type="text/css"></xml>

<table border="0" datasrc="#prices">
<tr>
<td><span datafld="share_price"></span></td>
<td><span datafld="move"></span></td>

</tr>
</table>

</body>
</html>

Which links to this XML file:

<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet type="text/css" href="test.css"?>
<daily_prices>
<share_price>666.8p</share_price>
<move>+10p</move>
</daily_prices>

It works file in MSIE but I get a blank page in Firefox 1.0.7. I realise that I might have to include some JavaScript for it to work in Mozilla - but I get a bit confused when reading up on it.

Can anyone help?

Many thanks in advance!

MS :confused:
 
Back
Top