I am doing the following and my code falls over at the last line because the tag doesn't exist! Which sometimes may be the case.. Is there any way which i can a check?
Dim Dom As Object
Set Dom = CreateObject("MSXML.DomDocument")
Dom.async = False
Dom.Load gsBASE_PATH & "\" & gsENV_PATH & "\" & gsDATA_PATH & "\System.xml"
gsPCPhotoDir = Dom.selectSingleNode("//SystemParams/Params/PCPHOTODIR").Text
I want to do something like follows but not sure of the syntex:
if TAGEXISTS then
gsPCPhotoDir = Dom.selectSingleNode("//SystemParams/Params/PCPHOTODIR").Text
end if
Any help would be MUCH appricated!
Jonny