|
INTERVIEW QUESTIONS
XML
XQUERY
DETAILS
Question: How to define functions in XQuery?
Answer: XML has many build-in functions. XQuery functions generally made perform with string values, numeric values, date and time comparisons, boolean values etc. XQuery has also give us facility to made our own functions. Now, I told you how to call XQuery functions. Ex 1: When you use function in an element. <name>{uppercase($booktitle)}</name>
Ex 2: When you use function in the predicate of a path expression. doc("bookmart.xml")/bookstore/book[substring(title,1,5)='Jungle']
Ex 3: When you use function in a let clause let $name := (substring($booktitle,1,4))
|
|
|
Category |
XQuery Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.2) By 8400 users |
Added on |
4/29/2014 |
Views |
70991 |
Rate it! |
|
|
Question:
How to define functions in XQuery?
Answer:
XML has many build-in functions. XQuery functions generally made perform with string values, numeric values, date and time comparisons, boolean values etc. XQuery has also give us facility to made our own functions. Now, I told you how to call XQuery functions. Ex 1: When you use function in an element. <name>{uppercase($booktitle)}</name>
Ex 2: When you use function in the predicate of a path expression. doc("bookmart.xml")/bookstore/book[substring(title,1,5)='Jungle']
Ex 3: When you use function in a let clause let $name := (substring($booktitle,1,4)) Source: CoolInterview.com
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.
|
|
Related Questions |
View Answer |
|
How to add elements and attributes with XQuery in XML data?
|
View Answer
|
|
How to perform comparisons in XQuery?
|
View Answer
|
|
How to perform conditional operations in XQuery?
|
View Answer
|
|
Give us syntax rules of XQuery?
|
View Answer
|
|
How you use XQuery FLWOR with HTML?
|
View Answer
|
|
How to use FLWOR expression given by XQuery in XML data?
|
View Answer
|
|
How to perform operation on node using XQuery function in XML?Explain with an example?
|
View Answer
|
|
WHich type of problems we can solved with XQuery?
|
View Answer
|
|
What is XQuery?
|
View Answer
|
Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.
View All XQuery Interview Questions & Answers - Exam Mode /
Learning Mode
|