【发布时间】:2011-11-04 12:43:57
【问题描述】:
以下是我的 XML 文件
<xyzevent xmlns="http://www.xyz.com/common/xyzevent/v1" xmlns:xsi="http://www.w3.org2001XMLSchema-instance">
<header>
----
</header>
<subscription xmlns="http://www.xyz.com/common/xyzevent/source/v1">
<sender></sender>
<receiver>
<clientsubscription>
<servicemap>nanna</servicemap>
</clientsubscription>
</receiver>
</subscription>
</xyzevent>
当我从这个 XML budila org.w3c.dom.Document 并应用带有表达式的 XPathExperssion 时
/xyzevent/subscription/receiver/clientsubscription/servicemap/text()
结果为空字符串。表达式可能有什么问题?
谢谢
【问题讨论】: