What if Xml file not found?
Hi, here is my asp code:
set xml = Server.CreateObject("Microsoft.XMLDOM")
xml.async = false
xml.load(server.MapPath("XML/WES.xml"))
My Question is: how can I stop a error display if the xml file is not found, there might not always be a xml file, and then nothing must happen.
also:
set objNode = xml.SelectSingleNode("employee_details[user_defined_id='0001']")
How do I test to see if the singlenode is found. If it is not found nothing must happen, but at the moment if it is not found I recieve errors.
Please help