如何用ASP读取 XML - Web 开发 / ASP
<?xml version="1.0"?>
<root>
<status>433</status>
<msg>这个是汉字</msg>
<serialno>123</serialno>
</root>
如何用ASP读取 status值 msg值 serialno值
LZ要学会用搜索引擎
http://topic.csdn.net/u/20090626/19/67DD3047-1F86-4291-B8EF-62D6782D52F1.html
用MSXML!给你小示例:
VBScript code:
strPath=Server.MapPath("/template/infotag.xml")
Set parser=Server.CreateObject("Microsoft.XMLDOM")
parser.Load(strPath)
If parser.parseError.errorCode<>0 then
Response.Write "load error..."
End If
Set itemList=parser.selectNodes("//item[@parent='0']")
Dim floatCursor:floatCursor=35
Dim maxindex:maxindex=itemList.length
Response.Write "<div class='item'>"
For I=0 to maxindex-1
Dim strTitle,strID
strTitle=itemList.item(i).firstChild.nodeValue
strID=itemList.item(i).getAttribute("id")
Set childNodes=parser.selectNodes("//item[@parent='"&strID&"']")
If childNodes.length-1>floa
相关问答:
http://www.zgjhjy.com/Test/PrimaryTest/Index.aspx
就是类似以上的在线测试系统,需要有一个后台的,语言是asp的,数据库是access的,还需要能在后台对信息进行添删改查的。谢谢各位了。。。
程序真的很多,不知 ......
最近在做个网上商城,购物车模块,没有做过,麻烦各位帮忙说下大致说下思路,能发一份源码更好。小弟先谢过各位了;
QQ:413763818;
eamil:swebook@126.com
网上一大堆!
www.51aspx.com
去下 ......
服务器现在是。net 2.0的
我现在的项目就是asp.net mvc + linq的,现在服务器的环境配置用不了。
不知道有前辈碰到过这样的问题没。
难道服务器必须要装.net3.5 和 asp.net mvc
请前辈指点
不装你认为你要怎么 ......