Hi,
I am working on an ASP site hosted using SUN One (used to be called Chillisoft) server. I am having trouble loading in an XML file, the code I am using is below
dim directory
set directory = Server.CreateObject("MSXML2.DOMDocument")
if(directory.load(Server.MapPath("directory.xml"))) then
Response.Write("Loaded")
else
Response.Write("NotLoaded")
If directory.parseError.errorCode Then
Response.Write( "Parse error" )
end if
end if
My asp page and directory.xml are both in the same folder "/public_html/".
I think the problem might have something to do with the mappath not finding the file, but no errors are returned so not sure what to do.
Thanks