Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XPath doubt.

 
Jose Mon
Ranch Hand
Posts: 30
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Consider the following XML

<CarInfo>
<Type>W</Type>
<CarVnd>ZE</CarVnd>
</CarInfo>


I want to Query the <CarInfo> tags which contains <CarVnd>ZE</CarVnd>

<CarInfo> is repeated so many times with different <carVnd> tags.

Can anyone give me the XPath query.
 
Paul Clapham
Sheriff
Pie
Posts: 20193
26
MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you say "where" in your informal description, that corresponds to using a predicate in XPath. Like this:
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic