wood burning stoves 2.0*
The moose likes XML and Related Technologies and the fly likes XPath query Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XPath query" Watch "XPath query" New topic

XPath query

Pradeep Katipamula
Ranch Hand

Joined: May 11, 2010
Posts: 37

I am new to XPath and am finding it difficult to get an expression to get the below result.

sample data

Now I want an expression which will omit the activity tags which don't have 'dance' and 'sing' in the 'what' tag and other tags like name and age should be retianed.


Can you please help.

Thanks a lot for your time.

I agree. Here's the link: http://aspose.com/file-tools
subject: XPath query
Similar Threads
have node object, need to view it's xml?
problem in getting xpath of each node.
XPath Query
SAXPARSER - Problem while parsing HTTPS Response XML
How to pass multiple params