XML and ASP: Retrieve and parse a remote file

后端 未结 6 1492
长情又很酷
长情又很酷 2021-01-05 22:31

I\'m building a site on a Windows Server with ASP enabled. I need to retrieve an XML document from another server and return a value in that document. The xml file is small

6条回答
  •  无人及你
    2021-01-05 23:22

    Debugging ASP is not as pleasant as you might be used to. This should help though:

    • If using IE ensure you have unticked "Show friendly error messages" in the options
    • Use Response.Write's to track just how far you are getting through your code.

    It could be that you have a 500 error handler page on the server you are using (assuming you are not running local). In which case you will have to modify the 500 page if you can so it gives you more details of the real error (see http://www.w3schools.com/ASP/asp_ref_error.asp). If you develop locally though you tend to get all the juicy details.

提交回复
热议问题