Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Other Programming > VBScript
|
VBScript For questions and discussions related to VBScript.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VBScript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old July 15th, 2011, 12:32 PM
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





Similar Threads
Thread Thread Starter Forum Replies Last Post
how to find child node when there is mentioned (child::*) mlohokare XSLT 3 May 12th, 2009 12:40 PM
Accessing a node bases on child node value musman0047 XSLT 1 February 27th, 2009 12:26 PM
Problem with displaying parent /child node in C# vishnu108mishra XML 1 November 16th, 2007 05:37 PM
how to append child node after an node in XML + C# vishnu108mishra XML 5 November 13th, 2007 05:30 AM
delete XML node from JavaScript - not child crmpicco Javascript How-To 1 April 27th, 2006 11:42 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.