Hi all,
I wrote this xml file:
<?xml version="1.0" standalone="no" ?>

<MESSAGE>
<TO>STUDENT</TO>
<FROM>ASSAF</FROM>
<CC>EDITOR</CC>
<SUBJECT>TEST</SUBJECT>
<BODY>HELLO</BODY>
<POSTSCRIPT>ENJOY HELLO</POSTSCRIPT>
</MESSAGE>
--------------------------------
And this HTML file:
<HTML>
<HEAD>
<script language=JavaScript>
<!--
var RootElement1;
var xmlDoc1=new ActiveXObject("microsoft.xmldom");
xmlDoc1.load("data2.xml");

function StartUp()
{
if (xmlDoc1.readyState=="4")
{
StartLoading();
}
else
{
alert ("not good");
}
}

function SttaartLoading ()
{
RootElement1=xmlDoc1.documentElement;
toda.innerText=RootElement1.childNodes(0).text;
fromdata.innerText=RootElement1.childNodes(1).text;
ccdata.innerText=RootElement1.childNodes(2).text;
subjectdata.innerText=RootElement1.childNodes(3).text;
bodyarea.innerText=RootElement1.childNodes(4).text;
psdata.innerText=RootElement1.childNodes(5).text;
}
//-->
</script>
</HEAD>
<BODY bgcolor="ffffff" onLoad="StartUp()">
TO:&nbsp;<span id=todata></span><br>
FROM:&nbsp;<span id=fromdata></span><br>
CC:&nbsp;<span id=ccdata></span><br>
SUBJECT:&nbsp;<span id=subjectdata></span><br>
BODY:&nbsp;<span id=bodyarea></span><br>
POST:&nbsp;<span id=psdata></span><br>
</BODY>
</HTML>
--------------------------------
Its a simple reading from an XML file but every time i got the alert message
"NOT GODD"

anyone know why?
hope someone can help