Friday, November 2, 2007

XML errors

Just a FYI (for myself more than others)

 

If you are trying to read an XML file, and you have attached the filename to a variable, and you then delete the variable line from your code, you will get a Permission Denied message.

 

So, if you are doing this:

 

  strfilename = objItem.Name
    
   Set xmlDoc = Server.CreateObject("Microsoft.xmldom")
   xmlDoc.async = False
   xmlDoc.load(Server.MapPath(strfilename))

 

for example, and you delete this line:

 

strfilename = objItem.Name

 

 

Additionally, if you have spaces in your node names, you might also receive an Object Required error.

No comments:

Related Posts with Thumbnails