Click to See Complete Forum and Search --> : Cant load XML file in ASP


Shmulik Golan
November 6th, 2000, 07:56 AM
hi all.
my problem is very simple; i'm tring to load xml file with xDoc.load(xFile) so i would work with it in my asp page (parser it and work with the data i recieved) - and i cant load it. when i do the same code in VB it work good, and i double check - so my file path is correct. can someone help me please?
thanks, Shmulik

twinrow
November 8th, 2000, 05:16 PM
You may find it usefull to interpret the error message that's being generated. Add this after the load:
If xDoc.pareError 0 then
Response.write xDoc.parseError.errorCode
Response.write xDoc.parseError.reason
End if
Response.End

Just to make sure, you are putting the path in quotes right? You'll also need to make sure the server (where the ASP code is compiled) has the most recent version of IE or the XML Tech Preview. One easy way of making sure this isn't the problem try xDoc.LoadXML "".

- Tom

twinrow
November 8th, 2000, 05:17 PM
Alright, my message was not received excatly as sent. I had <test></test> in between the quotes after the loadXML.