鸡蛋仔的配料:关于asp中的一个错误

来源:百度文库 编辑:中科新闻网 时间:2024/05/11 00:28:47
<%
set xmldoc=Server.CreateObject("Microsoft.xmldom")
xmldoc.load(server.mappath("temp/data.xml"))
xmldoc.selectsinglenode("//name").text="tanfei"(此行有误)
xmldoc.save(server.mappath("temp/data.xml"))
%> 能告诉我错在哪里了吗?

1 temp/data.xml路径错误
2 name节点不存在

你应该说说是什么错误吧,那样大家也好找些
大概是下面这句中的.text错误,不能用.text
xmldoc.selectsinglenode("//name").text