【发布时间】:2020-08-20 05:30:48
【问题描述】:
使用函数添加命名空间后:
var select = useNamespaces({ns1: "http://pippo.com/schema"})
我使用以下语句:
var Objects = select("//ns1:References/ns1:Reference[@ReferenceType="+typeofref+"]/text()="+id.toString(), ns);
我想要的输出是带有 ReferenceType = typeofref 和 text() = id 的所有引用
我得到的输出是:True
它似乎找到了一些东西,但它只是说存在元素,但它没有检索它。有人知道为什么吗?
xm文件就是这个:
【问题讨论】:
-
答案是:假