PDA

View Full Version : Dynamic XPath?


Funky_Junkie
August 8th, 2005, 11:54 AM
I was wondering if it was possible to put a VBscript variable in an XPath path? The page is to be dynamic, and the variable is taken from the URL. I would've used PHP, but my server doesn't support PHP or ASP so that's out of the question for now. Thanks,

Scott

Funky_Junkie
August 8th, 2005, 12:08 PM
Also, I forgot to say that I'm using the XML DOM at the moment, and the value will be chosen by selecting from a drop-down box which is also dynamic, but isn't selective so it's OK. Basically I want to say

set nodes=xmlDoc.selectNodes("something/somethingelse[Value=$variable]/variable")

but it doesn't want to work. Again, thanks for taking the time to read,

S