Hi all
I've been trying to get xml to display in Netscape, Mozilla and Opera but only IE works.
What did I do?:
1. I exported data from Access 2k to a xml file, created a seperate xsl, and bound it in a html site with this code
<HTML xmlns:signature="urn:schemas-microsoft-com
ffice:access">
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=UTF-8"/>
</HEAD>
<body>
<SCRIPT event=onload for=window>
objData = new ActiveXObject("MSXML.DOMDocument"
;
objData.async = false;
objData.load("path and filename.xml"
;
if (objData.parseError.errorCode != 0)
alert(objData.parseError.reason);
objStyle = new ActiveXObject("MSXML.DOMDocument"
;
objStyle.async = false;
objStyle.load("path and filename.xsl"
;
if (objStyle.parseError.errorCode != 0)
alert(objStyle.parseError.reason);
document.open("text/html","replace"
;
document.write(objData.transformNode(objStyle));
</SCRIPT>
</body>
</HTML>
Can any one tell me if xml is supported by other browsers and if yes how do I go about it displaying this data.
thks
hotreca
![[noevil] [noevil] [noevil]](/data/assets/smilies/noevil.gif)
I've been trying to get xml to display in Netscape, Mozilla and Opera but only IE works.
What did I do?:
1. I exported data from Access 2k to a xml file, created a seperate xsl, and bound it in a html site with this code
<HTML xmlns:signature="urn:schemas-microsoft-com
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=UTF-8"/>
</HEAD>
<body>
<SCRIPT event=onload for=window>
objData = new ActiveXObject("MSXML.DOMDocument"
objData.async = false;
objData.load("path and filename.xml"
if (objData.parseError.errorCode != 0)
alert(objData.parseError.reason);
objStyle = new ActiveXObject("MSXML.DOMDocument"
objStyle.async = false;
objStyle.load("path and filename.xsl"
if (objStyle.parseError.errorCode != 0)
alert(objStyle.parseError.reason);
document.open("text/html","replace"
document.write(objData.transformNode(objStyle));
</SCRIPT>
</body>
</HTML>
Can any one tell me if xml is supported by other browsers and if yes how do I go about it displaying this data.
thks
hotreca
![[noevil] [noevil] [noevil]](/data/assets/smilies/noevil.gif)