Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


XML Parsing help

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,3387
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> XML Parsing help
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 XML Parsing help - 6/15/2005 4:16:50 AM   
  UnderTheRadar

 

Posts: 1
Score: 0
Joined: 6/15/2005
From:
Status: offline
Hi, I'm a little new to VBScript and I'm having a little trouble traversing an xml file. I've done some C++ xml stuff a while back but I had a different parser. Here's a piece of the xml file.


      

If you've ever been involved with login scripts, you can probably see what I'm trying to do here. Basically, I have a WSH file that hosts a vbscript that's running through the GPO's for users during logon. It retrieves the gateway ip address of the workstation and tries to find it in this xml file. If it finds it, I need to be able to retrieve basically all of the values for that particular gateway, drive mappings to local file shares, software distribution points, printers, virus updates, etc. It's a very large network.

So far, I'm able to retrieve the gateway and find it in the xml file with an xpath statement, but I'm having trouble traversing to previous and/or next relative nodes and retrieving those values. And I'm not so sure xpath is the way to go?

Here's that code:

      

Thanks for any help on this. I truly appreciate it.

Cheers,
UTR
 
 
Post #: 1
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> XML Parsing help Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts