Question:
what is XQuery?
trytry
2006-05-20 06:33:14 UTC
what is XQuery?
Four answers:
riz
2006-05-22 01:18:06 UTC
Xquery is as similar to xml, what sql to Db
susie101lc
2006-05-20 06:37:33 UTC
What Is XQuery

by Per Bothner

October 16, 2002





The W3C is finalizing the XQuery specification, aiming for a final release in late 2002. XQuery is a powerful and convenient language designed for processing XML data. That means not only files in XML format, but also other data including databases whose structure -- nested, named trees with attributes -- is similar to XML.



XQuery is an interesting language with some unusual ideas. This article provides a high level view of XQuery, introducing the main ideas you should understand before you go deeper or actually try to use it.



An Expression Language

The first thing to note is that in XQuery everything is an expression which evaluates to a value. An XQuery program or script is a just an expression, together with some optional function and other definitions. So 3+4 is a complete, valid XQuery program which evaluates to the integer 7.



Related Reading





XML in a Nutshell

A Desktop Quick Reference

By Elliotte Rusty Harold, W. Scott Means



Table of Contents

Index

Sample Chapter



Read Online--Safari Search this book on Safari:



Only This Book All of Safari

Code Fragments only

There are no side-effects or updates in the XQuery standard, though they will probably be added at a future date. The standard specifies the result value of an expression or program, but it does not specify how it is to be evaluated. An implementation has considerable freedom in how it evaluates an XQuery program, and what optimizations it does.



Here is a conditional expression that evaluates to a string:
Spock
2006-05-20 06:33:49 UTC
XQuery is a query language (with some programming language features) that is designed to query collections of XML data. It is semantically similar to SQL.



XQuery 1.0 is being developed by the XML Query working group of the W3C. The work is closely coordinated with the development of XSLT 2.0 by the XSL Working Group; the two groups share responsibility for XPath 2.0, which is a subset of XQuery 1.0. XQuery 1.0 became a W3C Candidate Recommendation on November 3, 2005.
programmer
2006-05-20 07:20:37 UTC
Its a method to QUERY into XML files!


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...