1. What dows FLOWR in XQuery terminology stand for ? For,Let,Order By,Where and Return are key words for writing XQuery Expressions. FLOWR stands for these key words .
2. How can you find out the tag name of an XML Element excluding the namespace? By using the local-name() Xpath function e.g.
For the Xml node <ns0:< span=""></ns0:<>Request xmlns:ns0=”blah blah”>abc local-name function will return ‘Request’
3. How do you specify namespace definitions in XQuery File? By using the ‘declare namespace ‘ statement.
4. How can you read external xml document in XQuery ? By Using the document() function
5. What does the Xquery expression ‘element xyz{“abc”}’ result into? It will result into xml element abc.
6. How can you avoid getting xquery transformation errors? By doing data validation before invoking the core xquery functions/constructs.
7. How can you concatenate Strings in Xquery ? By using the concat xquery function
8. How can you remove multiple newline ,space and tab characters from a string ? By using the normalize-space xquery function
9. How will you iterate over the child nodes of an xml node in XQuery? By using the for… expression.
10. How will you return a Boolean true value from xquery ? By using the true() function.
No comments:
Post a Comment