如何加载在传统的ASP xml文件 [英] how to load xml file in classic asp
问题描述
可能重复:结果
如何分析与传统的ASP XML?
我想加载一个XML文件中在传统的ASP。
I want to load one XML file in classic ASP.
我使用
blnFileExists = objDom.Load(Server.MapPath("\a\abcfiles\admin\image_name.xml"))
但是当我写 blnFileExists
它给了我假的。
我应该怎么办?
推荐答案
验证文件路径是你它写。你有它编写的方式,文件image_name.xml应该在C:\\的Inetpub \\ wwwroot的\\ A \\ abcfiles \\ ADMIN。如果不是的话,那么有问题的一部分。
Verify the file path is as you have it written. The way you have it written, the file image_name.xml should be in C:\Inetpub\wwwroot\a\abcfiles\admin. If that's not the case, then there's part of the problem.
您可能要改为给一个使用Server.Mappath虚拟路径,如/a/abcfiles/admin/image_name.xml。这条道路将被解析为 http://www.yourWebSite.com/a/abcfiles /admin/image_name.xml 。再次,如果这不是正确的路径,调整是必要的。
You may want to instead give Server.MapPath a virtual path, like "/a/abcfiles/admin/image_name.xml". This path will be resolve to http://www.yourWebSite.com/a/abcfiles/admin/image_name.xml. Again, if this is not the correct path, adjust it as necessary.
这篇关于如何加载在传统的ASP xml文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!