What are the syntax rules of XQuery?

 Posted by Bharathi Cherukuri on 5/11/2012 | Category: Web Services, Remoting Interview questions | Views: 1870 | Points: 40

Here are some basic syntax rules of XQuery.

1. XQuery is an case sensitive.
2. In XQuery elements , attributes and variables that we use should have valid XML names.
3. Should write XQuery with in single and double quotes.
4. We defined XQuery variable with like: $(variable name).
Ex: $book.
5. We can write XQuery comments between colon(:).
Ex: (:Comment in XQuery:)

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response