Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Simple Xpath question

Tags:

xml

xpath

I have the following XML

<List name="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

like image 671
user82383 Avatar asked Jan 21 '26 17:01

user82383


1 Answers

List[@name='X' and @price='100' and @title='ABC' and Item='Value123']
like image 165
John Kugelman Avatar answered Jan 23 '26 11:01

John Kugelman



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!