|
-
Oct 22nd, 2002, 01:36 AM
#1
Thread Starter
Addicted Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|