aspose file tools*
The moose likes XML and Related Technologies and the fly likes XPath doubt. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XPath doubt." Watch "XPath doubt." New topic
Author

XPath doubt.

Jose Mon
Ranch Hand

Joined: Feb 13, 2007
Posts: 30
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
Bartender

Joined: Oct 14, 2005
Posts: 18570
    
    8

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
 
subject: XPath doubt.