以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 DOM/SAX/XPath 』  (http://bbs.xml.org.cn/list.asp?boardid=11)
----  [求助]  (http://bbs.xml.org.cn/dispbbs.asp?boardid=11&rootid=&id=31777)


--  作者:okli096
--  发布时间:5/4/2006 10:44:00 PM

--  [求助]
<License>
 <Component>
  <SerialNumber>111</SerialNumber>
 </Component> 
               <LicenseKey>
  <CustomerID>SAG</CustomerID>
  <CustomerName>Software AG</CustomerName>
               </LicenseKey>
 
</License>
<License>
 <Component>
  <SerialNumber>110</SerialNumber>
 </Component> 
               <LicenseKey>
  <CustomerID>SAyy</CustomerID>
  <CustomerName>wqe</CustomerName>
               </LicenseKey>
 
</License>
请教一下各位大哥怎么用xpath通过SerialNumber元素的值为条件来查询返回CustomerID元素??例如我要查询SerialNumber元素的值为110时的CustomerID元素,xpath该怎么写呢?会的请发表一下,小弟感激不尽!

W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
31.250ms