|
以文本方式查看主题 - 中文XML论坛 - 专业的XML技术讨论区 (http://bbs.xml.org.cn/index.asp) -- 『 DOM/SAX/XPath 』 (http://bbs.xml.org.cn/list.asp?boardid=11) ---- 关于 XML DOM selectNodes使用的问题 (http://bbs.xml.org.cn/dispbbs.asp?boardid=11&rootid=&id=27586) |
|
-- 作者:Sun_Moon1981 -- 发布时间:2/22/2006 9:00:00 AM -- 关于 XML DOM selectNodes使用的问题 <?xml version="1.0" encoding="GB2312"?> <BMTree text="CSDN社区起始点" id="00000000"> <BMTree text="我感兴趣的社区" id="00010000"> <BMTree text="配置我感兴趣的社区" id="00010100"/> <BMTree text="Web 开发" id="00010200"/> <BMTree text="Oracle" id="00010300"/> <BMTree text="企业开发 Lotus" id="00010400"/> <BMTree text="WebSphere" id="00010500"/> <BMTree text="Linux/Unix 社区" id="00010600"/> </BMTree> <BMTree text="我的技术社区" id="00020000"> <BMTree text="选择我的配色方案" id="00020100"/> <BMTree text="我的帖子" id="00020200"/> <BMTree text="我参与的讨论" id="00020300"/> <BMTree text="我的社区积分" id="00020400"/> <BMTree text="我的专家分" id="00020500"/> <BMTree text="我的收藏夹" id="00020600"/> </BMTree> <BMTree text="中国软件技术大会" id="00080000"/> </BMTree> 使用 selectNodes 如何找到 id=00020600 的结点! |
|
-- 作者:Qr -- 发布时间:2/22/2006 9:48:00 AM -- xmldom.selectNodes("//BMTree[id='00020600']")[0] |
|
W 3 C h i n a ( since 2003 ) 旗 下 站 点 苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》 |
46.875ms |