An introduction to XQuery
The best way to explain XQuery is to say this: XQuery with respect to the relationship between the XML and SQL equivalent with respect to relational database tables.
XQuery is designed to query XML data - not limited to XML documents, XML forms can also include any presentation of data, including databases.
You should have a basic knowledge:
Before you continue to learn, we need to have knowledge of the following basic understanding:
- HTML / XHTML
- XML / XML namespace
- XPath
If you want to study these subjects first, please our home page to access these tutorials.
What is XQuery?
|
XQuery and related XML Query
XQuery is used to find and extract from an XML document elements and attributes of the language.
This is an example of an XQuery to solve practical problems:
"Select all prices from CD collection stored there in an XML document named cd_catalog.xml of less than $ 10 CD recording."
XQuery and XPath
XQuery 1.0 and XPath 2.0 share the same data model and support the same functions and operators. If you have learned XPath, XQuery learning so there is no problem.
You can in our " XPath tutorial Read more about XPath knowledge" on.
XQuery - Application examples
XQuery can be used to:
- Extract information for use in a network service
- A summary report is
- The XML data into XHTML
- To obtain relevant information and documents Search Network
XQuery is a W3C Recommendation
XQuery is compatible with a variety of W3C standards, such as XML, Namespaces, XSLT, XPath and XML Schema.
XQuery 1.0 2007 January 23 was established as a W3C Recommendation.
For more information about the W3C XQuery activities, please read our " W3C tutorial ."