Question:
What do you mean by selecting and Filtering elements in XQuery?
Answer:
We can selecting and filtering the xml elements with FLWOR and Path expression. I have given you a FLWOR expression: for $a in doc("bookmart.xml")/bookstore/book where $a/price<150 order by $a/title return $a/title Where, 1. for : It is an optional and use to bind a variable to each item. for $a in (1 to 5) return <test>{$a}</test> Source: CoolInterview.com
There should not be any Spelling Mistakes. There should not be any Gramatical Errors. Answers must not contain any bad words. Source: CoolInterview.com
Answered by: imrana | Date: 9/5/2010
| Contact imrana
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|