Slightly modified example from MSDN (local installation)
Work on MIE5+
For more info search in MSDN for
XMLDOMDocument,XMLDOMNode
In my old local installation of MSDN it's here
\MSDN\DNQ000ENU3\MSDN\inet
Looks like now Microsoft have newer object replacing old ActiveX
http://msdn.microsoft.com/
In online MSDN I found other thing you probably may want to use
http://msdn.microsoft.com/
Some more usefull article
http://msdn.microsoft.com/
And so on around it :)))
--------- Example -----------
<script>
var xmldoc;
function Load()
{
xmldoc = new ActiveXObject("Microsoft.X
xmldoc.onreadystatechange = CheckState;
xmldoc.loadXML(xml.value);
}
function CheckState()
{
var state = xmldoc.readyState;
RESULTS.innerHTML += "readyState = " + state + "<BR>"
if (state == 4)
{
var err = xmldoc.parseError;
if (err.errorCode != 0)
RESULTS.innerHTML += err.reason + "<BR>"
else
RESULTS.innerHTML +="success" + "<BR>"
alert(xmldoc.xml)
}
}
</script>
<textarea id=xml>
<top>
<child>
Yahoo
</child>
</top>
</textarea>
<input type=button value=LOAD onclick="jscript:Load()">
<div id=RESULTS style="color:red; font-weight:bold;"></div>
Main Topics
Browse All Topics





by: kasandraPosted on 2003-03-12 at 20:39:15ID: 8125176
What do you mean?
What is your source?