VBS and selectSingleNode and getAttribute...
Posted on 2004-09-12
I have a question that you all may be able to assist with. I've done this in JScript but I'm missing something and not exactly sure how to achive this in VBScript.
I want to get a attribute of a node. In JScript I would do something like:
xObj = new ActiveXObject("Microsoft.XMLDOM");
var root = xObj.selectSingleNode("testOutput/test"); // Get the child node "test"
var strDesc = root.getAttribute("Description")
How do I do something similar to this in VBS. I know in VB I can have the strDesc definied as and IXMLDOMElement but in VBS you can't create something with an AS on the DIM statement.
Any assistance with this would be greatly appreciated.