I have a rowset coming back using the Microsoft rowset schema from my stock control system.
However when using msxml2 to read the document I don't seem to be able to access the data (Written in vbscript)
<xml>
<s:schema>
<!-- Schema here -->
</s:schema>
<rs:data>
<z:row field="value" field1="value" />
</rs:data>
</xml>
To pull this back I am using:
Set objXmlHttp = Server.CreateObject("Msxml2.ServerXMLHTTP")
objXmlHttp.open "POST", address, False
objXmlHttp.setRequestHeader "Content-Type", "text/xml"
objXmlHttp.Send strXml
Set objLst = XML_response.getElementsByTagName("data")
myValue = objLst.item(0).getAttribute("field")
However I am receiving the following message:
Microsoft VBScript runtime error '800a01a8'
Object required: 'objLst.item(...)'
This is probably me doing something totally wrong, if so could someone point it out to me please because I have stared at this for 2 hours now and I can't get it.
Given a table like:
in an ADO (classic, tested with version 2.8) accessible database, you can save the resultset to XML using
That gives you XML like:
To read that data, start with (local, console) code like:
The important steps: