0
例如XPath的选择子元素我有没有一个特定的元素
<a>
<test>
<name>h</name>
</test>
<test2>
<name>s</name>
</test2>
<test3/>
</a>
我要选择的试验中,在没有name元素内部 是我迄今所做的:
/a/test/*[not(self::name)]
预期输出应该只有test3才会显示,但是在我的程序中它的显示内容都包括test,test2和test3。我的编码有任何错误?