selectSingleNode集中的子节点取值

xtxc 2013-01-25 01:32:35
结构
<ITEM>
<ID/>
<MenuTitle/>
</ITEM>
<ITEM>
<ID/>
<MenuTitle/>
</ITEM>


set NodeList=RootNode.selectSingleNode("Item[ID="& MenuID &"]")
response.write NodeList.childnodes(0).Text
是正确的
response.write NodeList.childnodes("ID").Text

如何区得NODE名称取值,而不是数字来取值
...全文
128 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
fzfei2 2013-01-26
  • 打赏
  • 举报
回复
response.write NodeList.selectSingleNode("ID").Text
xtxc 2013-01-25
  • 打赏
  • 举报
回复
补充:response.write NodeList.childnodes("ID").Text 出错,提取不了值

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧