View Single Post
  #1 (permalink)  
Old July 15th, 2011, 12:32 PM
jtrifts jtrifts is offline
Authorized User
 
Join Date: Aug 2004
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Question 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

Reply With Quote