2016-10-13 00:16:48 点击量:9 标签: 收藏本文
以前只用Flash读过xml, 如今我想用xml做远程数据库, 需要用asp来远程读, 研究了半天, 终于成功了! PS: item表示项目, childnodes表示儿子, node就是节点的意思;
程序代码
- <%
- dim xml
- set xml = Server.CreateObject("Microsoft.XMLDOM")
- xml.async = false
- Call xml.SetProperty("ServerHTTPRequest", true) '远程加载时使用
- xml.Load("http://www.cuplayer.com/news.asp?id=713")
- set blogchild=xml.getElementsByTagName("lost63")
- the_text=blogchild.item(0).childnodes(0).childnodes(4).text
- 'the_text=blogchild.item(0).text
- response.write the_text
- %>
我们是一家提供综合软件外包与弱电工程服务的技术公司。
业务涵盖定制软件、管理系统、网站、小程序、APP、系统集成、网络布线、监控安防、门禁、机房建设及长期技术维护。
公司地址:湖北省宜昌市伍家岗区东站二路6号三峡(宜昌)大数据产业园海洋馆二楼A203室