Arcader 0 Posted May 29, 2007 Report Share Posted May 29, 2007 I'm trying to make a video podcast reader but I'm having problems with varibles in this program. <body><script type="text/vbscript">set xmlDoc=CreateObject("Microsoft.XMLDOM")xmlDoc.async="false"xmlDoc.load("Beta.xml")dim numbernumber=3set nodes=xmlDoc.selectNodes("/channel/item[number]/link/text()")for each x in nodes document.write("<embed width=320 height=240 src=") document.write(x.xml) document.write(">")next</script></body> how can I make varible number work with the xml reading code, or what did I do wrounge with the code? Quote Link to post Share on other sites
aalbetski 0 Posted May 29, 2007 Report Share Posted May 29, 2007 set nodes=xmlDoc.selectNodes("/channel/item[" & number & "]/link/text()") Quote Link to post Share on other sites
Arcader 0 Posted May 30, 2007 Author Report Share Posted May 30, 2007 thanks this is what needed. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.