File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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:
subject: XPath query
It's not a secret anymore!