gpt4 book ai didi

xpath - 与 SQL In 查询等效的 XPath 是什么?

转载 作者:行者123 更新时间:2023-12-03 16:06:29 24 4
gpt4 key购买 nike

我想知道与 SQL In 查询等效的 XPath 是什么。基本上在sql中我可以这样做:

select * from tbl1 where Id in (1,2,3,4)

所以我想在 XPath/Xsl 中有类似的东西:

IE。
//*[@id= IN('51417','1121','111')]

请指教

最佳答案

(在 XPath 2 中)= 运算符总是像在中一样工作。

IE。您可以使用

//*[@id = ('51417','1121','111')]

关于xpath - 与 SQL In 查询等效的 XPath 是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12421289/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com