开发者

Simple Xpath question

开发者 https://www.devze.com 2023-03-29 04:30 出处:网络
I have the following XML <List na开发者_高级运维me=\"X\" price=\"100\" title=\"ABC\"> <Item>Value123</Item>

I have the following XML

<List na开发者_高级运维me="X" price="100" title="ABC">
  <Item>Value123</Item>
</List>

I am trying to build an XPath query where all the attributes (name , price, tittle) matches (x,100,ABC) And where the Item value is "Value123"

I just can't wrap my head around building the xpath query


List[@name='X' and @price='100' and @title='ABC' and Item='Value123']
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号