View Single Post
  #3  
Old 10-26-2007, 10:22 AM
Too_Tall_Crown_Victoria Too_Tall_Crown_Victoria is online now
Registered User
 
Join Date: 01-15-2003
Posts: 44
I have an additional challenge with this:

If we assume:

<dependencies>
<component>
<name>ProjA</name>
<version>1.2.3</version>
</component>
<component>
<name>ProjB</name>
<version>2.3.4</version>
<file_name>myfile.dll</file_name>
<file_name>myfile2.dll</file_name>
<file_name>myexe.exe</file_name>
</component>
</dependencies>

We now have a need to have an optional <file_name> 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.
Reply With Quote