user82383
user82383

Reputation: 899

Simple Xpath question

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

Upvotes: 3

Views: 61

Answers (1)

John Kugelman
John Kugelman

Reputation: 362037

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

Upvotes: 2

Related Questions