SiteExperts.com Logo Home | Community | Developer's Paradise
User Groups | Site Tools | Site Information | Search
 Main Menu
 Forums
SiteExperts.com Forums
All Discussions

SiteExperts Feedback
The Lounge
Dynamic HTML
Site Design/ Critiques
HTML and CSS
XML Technologies
The Wireless Internet
Internet Explorer
Microsoft .NET
The Server
Technical Support

Sponsored Links

User Groups : Forums : SiteExperts : XML Technologies :

Previous DiscussionNext Discussion
 selectNodes issue/question

Set NodeList = objXMLDoc.selectNodes("/MarketingList/TargetClient/FNAME | LNAME")

is this proper syntax? I'm trying to grab both "FNAME" and "LNAME" nodes and combine them into one value with no space in between. Make sense?

thanks for ANY help!

Started By danthewebguy on Aug 10, 2005 at 12:24:36 PM

24 Response(s) | Reply

Earlier Replies | Replies 1 to 3 of 24 | Later Replies
Goto Page: 4 3 2 1
BachusII on Aug 10, 2005 at 12:28:07 PM (# -2)
This message has been edited.

"/MarketingList/TargetClient/FNAME|/MarketingList/TargetClient/LNAME" I'd think.
That should get you both nodes. Then you'll need some further script to combine them.


danthewebguy on Aug 10, 2005 at 12:36:17 PM (# -1)

yup - that worked, i wrote out the text:

For Each Node In NodeList
response.write(Node.text & "
")
Next

and it shows both first name and last name - great! one step closer! thanks Bachusll.


danthewebguy on Aug 10, 2005 at 12:53:19 PM (# 0)

anyone happen to know where I would go from here, getting "FNAME" and "LNAME" into a single variable eg:

JOHN
DOE

New Variable "JOHNDOE"


BachusII on Aug 10, 2005 at 12:59:15 PM (# 1)

My VBScript is rusty but here goes.
s = ''
For Each Node In NodeList
  s = s & Node.text
Next
response.write s


danthewebguy on Aug 11, 2005 at 7:22:02 AM (# 2)

that's it - it wrote all of the fnames and lnames out in a continous line, however, I don't want to write the names out, I just want to check if they exist, if so show a page, if not say "user not found".

I'm soooo stuck on this - I've googled everything I know to google here! :)


BachusII on Aug 11, 2005 at 7:40:13 AM (# 3)
This message has been edited.

You don't have to response.write them, you could just as easily do something else with s.


Earlier Replies | Replies 1 to 3 of 24 | Later Replies
Goto Page: 4 3 2 1

To respond to a discussion, you must first logon.

If you are not registered, please register yourself to become a member of the SiteExperts.community.

User Name
Password
Copyright 1997-2004 InsideDHTML.com, LLC. All rights reserved.