Using XQuery to search for Node having specific details

daryo

New Member
I'm not an expert in XQuery and I'm having to search though big collection of files,the XML doc have a structure like this,\[code\]<files><file> <name>1</name> <contents> <content>games</content> <content>movies</content> </contents></file><file> <name>2</name> <contents> <content>games</content> <content>picture</content> <content>work</content> </contents></file>\[/code\]its like the user i have a set of content like may be ("games","movies") and I have to return the nameso far i wrote only this\[code\]for $x in /files/file return $x/content\[/code\]I want to know whether this is possible with XQuery? if possible, just give me some guidelines, i'm not aware of all xquery constructs, thats my main drawback
 
Back
Top