I am trying to parse a single XML entry with no name in ASP classic and having issues getting it to resolve to an object?
Here is what I am trying:
result = xmlDoc.selectSingleNode("//Boolean")
I have also tried:
result = xmlDoc.selectSingleNode("//Boolean").Attributes.Text
Neither of them return an object, this is my first time working with XML and I haven't got a clue how to get an object without a name.
Here is the XML results file:
And here is the error:
Microsoft VBScript runtime error '800a01a8' Object required: 'xmlDoc.selectSingleNode(...)'
How xmldoc is being populated:
set xmlDoc = createObject("MSXML2.DOMDocument") xmlDoc.async = False xmlDoc.setProperty "ServerHTTPRequest", true url = "http://localhost:81/api/logging/Service.svc/xml/LogEvent?" //Create the http string url = url & "sessionId=" & sessionId url = url & "source=" & source url = url & "action=" & action url = url & "parameters=" & parameters xmlDoc.load(url) result = xmlDoc.selectSingleNode("//Boolean")