Hi,
I am actually trying to extract elements of an xml document and put them into text boxes. But I am unable to do it . here is the code iam trying
<html>
<body>
<form>
<table>
<script type=”text/vbscript”>
i=1
txt=”<h1>Traversing the node tree</h1>”
document.write(txt)
set xmlDoc=CreateObject(“Microsoft.XMLDOM”)
xmlDoc.async=”false”
xmlDoc.load(“student.xml”)
for each x in xmlDoc.documentElement.childNodes
document.write(“<tr>”)
document.write(“<td>”)
document.write(“</td>”)
document.write(“</tr>”)
document.write(“<b>” & x.nodename & “</b>”)
document.write(“: “)
document.write(x.text)
document.write(“<br>”)
document.write(i)
i=i+1
next
</script>
</table>
</form>
</body>
</html>
This code works and it diplays the elements of the XML document as text on the page. I want that the nodename should be displayed as a value of a text box instead of just as text. so I am trying to create a text box and assign the value of nodename to that text box within the loop.but when i do that nothing comes up.
Cant we create a form and form elements within vbscript and assign values to those form eleements?
Can someone help?
Thanks,
vijaya