Hi,
I have some XML that is similar to the following:
I have some XML that is similar to the following:
Code:
<?xml version="1.0" encoding="ISO-8859-1" ?>
- <audit>
<auditdate>19/05/2011</auditdate>
<audittime>14:39:26</audittime>
<hostname>PC211</hostname>
- <apps>
- <item>
<appname>Vuze</appname>
<installdate />
<version>4.</version>
<knownapp>False</knownapp>
</item>
- <item>
<appname>WebEx</appname>
<installdate />
<version>.</version>
<knownapp>False</knownapp>
</item>
</apps>
<previousapps>
- <item>
<installationid>123</installationid>
<appname>Microsoft Word</appname>
<installdate />
<version>1</version>
<knownapp>True</knownapp>
</item>
</previousapps>
[/coder]
I want to look at each <item> contained within the branch <apps> and then if <knownapp> is true do A and if <knownapp> is false do B.
After all of them are done I then want to look at each item in the <previousapps> branch. I want to say if there is no <appname> in the <apps> branch that matches the <appname> in the <previousapps> branch then get the <installationid> and do something with that.
Hope this sort of makes sense - I am really struggling to find a decent article on parsing XML in vbscript so any pointers would be be very much appreciated.
Thanks very much
Ed