Navigating the XML DOM using VBScript

wxdqz

New Member
I need to check whether or not a node exists using a known node name and attribute (eg. <post id="POS269">) and then whether it has a specific grandchild (<teacher />). I've managed to complete the first step:

dim xmlDom, nodeList, seeking, requirements
set xmlDom = server.createobject("MSXML2.DOMDocument")
xmlDom.async = false
xmlDom.load backstage & "/xml/organisation.xml"
seeking = "//post[@id='" & session("applying_for") & "']"
set nodeList = xmlDom.documentElement.selectSingleNode(seeking).childNodes

but can't work out how to check for the grandchild.

Also can anyone recommend any good websites or books for using the XML DOM with VBScript?
 
Back
Top