Arcader Posted May 29, 2007 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? Link to comment Share on other sites More sharing options...
aalbetski Posted May 29, 2007 Share Posted May 29, 2007 set nodes=xmlDoc.selectNodes("/channel/item[" & number & "]/link/text()") Link to comment Share on other sites More sharing options...
Arcader Posted May 30, 2007 Author Share Posted May 30, 2007 thanks this is what needed. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.