请教一个xpath语法问题
<device>
<property name="name">test1</property>
<property name="id">r2wr2rwererwerwrre</parameter>
</device>
<device>
<property name="name">test2</property>
<property name="id">sfadfadsfadsfadsfa</parameter>
</device>
我希望获取id为sfadfadsfadsfadsfa所在的device节点,或者是所在的property节点,请问xpath应该怎样写呢?
"//device/[property=sfadfadsfadsfadsfa]"这样似乎不行啊