Set objNoFormCheckXMLDOM = CreateObject("Microsoft.XMLDOM")
objNoFormCheckXMLDOM.async = "false"
objNoFormCheckXMLDOM.setProperty "SelectionLanguage", "XPath"
objNoFormCheckXMLDOM.LoadXML(strHtmlResponse)
Set nlForms = objNoFormCheckXMLDOM.selectNodes("form")
I have the above VBScript in a function.
strHtmlResponse contains the markup as a string, I want to be able to check it for a form element, at any level including the root.
The above example doesn’t return any nodes in the nlForms nodelist.
Anyone know how I can do this?
Thanks
1 Answer