firebladeboy
2006-05-16 03:48:01 UTC
Hi, I'm having trouble finding how to check if a xml node exists in an (MBSA)
xml document then to perform the next command.
I have the code to return the node itself as strTest, how do I check of the
node exists first as this script will fail if Check[@ID='174'] is not present
in the XML doc?
' Retrieve Office Patch Advice Summary Node
Set xmlRoot = xmlDoc.documentElement
Set nodeID = xmlDoc.SelectSingleNode("SecScan/Check[@ID='174']/Advice")
strTest = trim(nodeID.text)
Thanks
Dion
xml document then to perform the next command.
I have the code to return the node itself as strTest, how do I check of the
node exists first as this script will fail if Check[@ID='174'] is not present
in the XML doc?
' Retrieve Office Patch Advice Summary Node
Set xmlRoot = xmlDoc.documentElement
Set nodeID = xmlDoc.SelectSingleNode("SecScan/Check[@ID='174']/Advice")
strTest = trim(nodeID.text)
Thanks
Dion