Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   [VBP] General Discussion (https://www.kinook.com/Forum/forumdisplay.php?f=2)
-   -   XML read question (https://www.kinook.com/Forum/showthread.php?t=3823)

ezb 10-09-2008 10:37 AM

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:












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

kinook 10-09-2008 12:31 PM

http://www.kinook.com/VisBuildPro/Manual/xmlsample.htm


All times are GMT -5. The time now is 05:58 AM.


Copyright © 1999-2023 Kinook Software, Inc.