当前位置: 代码迷 >> ASP >> selectSingleNode集中的子节点取值解决方案
  详细解决方案

selectSingleNode集中的子节点取值解决方案

热度:81   发布时间:2013-02-17 10:44:46.0
selectSingleNode集中的子节点取值
结构
<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名称取值,而不是数字来取值

------解决方案--------------------
 
response.write NodeList.selectSingleNode("ID").Text
  相关解决方案