Problem reading child node in xml stream
I'm trying to read a child note in a xml stream but not getting anything back from a specific child node
<pagedetails>
<items>
<employeename><![CDATA[AdvancedOfficeSystems]]></employeename>
<taxscheduleid><![CDATA[USAUSSTCITY+6*]]></taxscheduleid>
</items>
</pagedetails>
<pagedetails>
<items>
<employeename><![CDATA[AdvancedOfficeSystems]]></employeename>
<taxscheduleid><![CDATA[USAUSSTCITY+6*]]></taxscheduleid>
</items>
</pagedetails>
with oXMLA.documentElement
if (.selectNodes("//pagedetails/empty").length = 0) then
if (.selectNodes("//pagedetails/errordbtype").length = 0) then
strMSGA = .selectSingleNode("//pagedetails/items/employeename").text
strMSGB = .selectSingleNode("//pagedetails/items/taxscheduleid").text
So the xml stream is returning all the correct data.
The vbscript is returning data for the child node "taxscheduleid" but nothing in the "employeename"
Any ideas of another way to reference the node or what the problem might be?
Thanks
|