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)
-   -   Loop over a generic XML file (https://www.kinook.com/Forum/showthread.php?t=2826)

Too_Tall_Crown_Victoria 07-23-2007 04:30 PM

Loop over a generic XML file
 
I have an xml file that I need to loop over. The xml.bld example shows how to loop on attributes of a node. I need to loop on the contents of sub nodes. For example:



ProjA
1.2.3


ProjB
2.3.4



Is there a simple way to set this up and loop on each component and retrieve it's cooresponding version number?

Thanks

Tom

kinook 07-23-2007 05:32 PM

1 Attachment(s)
Attached.

Too_Tall_Crown_Victoria 10-26-2007 09:22 AM

I have an additional challenge with this:

If we assume:



ProjA
1.2.3


ProjB
2.3.4
myfile.dll
myfile2.dll
myexe.exe



We now have a need to have an optional node. However when I use the selectsinglenode and a node is not there the vbscript errors out.

So how can I check to see if a node exists, and if it does how can I loop on it in this format.

Thanks in advance. Please ignore previous reply.

kinook 10-26-2007 11:10 AM

1 Attachment(s)
See attachment.

Too_Tall_Crown_Victoria 11-01-2007 11:35 AM

The script worked great for looping and reading the multi node that may or may not exist.

What I need now is to take this list and write it to a macro. I need this in a macro because I need to loop on each of these elements later in the script. How can I accomplish this?

kinook 11-01-2007 02:15 PM

1 Attachment(s)
Attached.


All times are GMT -5. The time now is 03:08 PM.


Copyright © 1999-2023 Kinook Software, Inc.