asp读取xml
程序代码:
<?xml version="1.0" encoding="gb2312"?> <songkurInfo serviceURL="xxxxx" partnerID="xxx" pass="xx" Ratio="xxx" tel="33445890" netName="xxx" netAddress=""> </songkurInfo>
我的asp代码!,没有效果
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--读取xml配置文件-->
程序代码:
<% Set oDoc=Server.CreateObject("Microsoft.XMLDOM") With oDoc .async=False .load Server.MapPath("songkurInfo.xml") Set oNode=.selectSingleNode("//songkurInfo") End With Response.Write oNode.getAttribute("serviceURL") Set oDoc=nothing Set oNode=nothing %>