Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 10-09-2008, 10:37 AM
ezb ezb is online now
Registered User
 
Join Date: 10-02-2008
Posts: 1
XML read question

Hello, I've a question related to read from a XML file using Visual Build Pro, I hope you can help me with the following:

I have an xml, suppose something like this:

<profile>
<version>
<server></server>
<server></server>
</version>

<version>
<server></server>
</version>
</profile>

In order to navigate the version, I have something like this:
vbld_TempMacros().Add "NODELIST", msxml.selectNodes("/profile/version")
To access the "server" node I use
vbld_TempMacros()
.Add "NODELISTSERVER", msxmlServer.selectNodes("/profile/version/server")
What I'm trying to do is, for each version, navigate its child nodes, however, at this moment I'm using the second line that I pasted, which retrives all the server nodes without take in consideration the parent (in this case "version")
In other words, I'd like to do something like the following if possible
vbld_TempMacros()
.Add "NODELISTSERVER", msxmlServer.selectNodes("/profile/version/server") WHERE VERSION = %VERSION%
Thanks in advance for your help
Reply With Quote
  #2  
Old 10-09-2008, 12:31 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,003
http://www.kinook.com/VisBuildPro/Manual/xmlsample.htm
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 03:35 AM.


Copyright © 1999-2023 Kinook Software, Inc.