• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » XQuery 3.0 : The Query and Functional Programming Language

By Abhishek Ghosh May 6, 2014 10:20 pm Updated on May 6, 2014

XQuery 3.0 : The Query and Functional Programming Language

Advertisement

XQuery 3.0 is the latest version of XQuery. XQuery is the XML query language and refers to W3C specified query language for XML databases. XQuery 1.0 became a W3C Recommendation on January 23, 2007 and XQuery 3.0 became a W3C Recommendation on April 8, 2014. XQuery uses XSLT, SQL and C ajar syntax; uses XPath and XML schema for its data model and its function library. XQuery is derived from the languages ??XQL, XML-QL and Quilt.

 

Basics on XQuery 3.0 and XQuery

 

XQuery is a query language designed for data collections in XML. Is semantically similar to SQL , but includes some programming capabilities. XQuery provides the means to extract and manipulate information from XML documents or any data source that can be represented using XML, for example, relational databases or office documents. XQuery expressions uses XPath to access certain parts of the XML document. It adds, similar to those used in SQL, known as FLWOR expressions. The FLWOR expressions are named after the 5 types of sentences that can be composed: FOR, LET, WHERE, ORDER BY, and RETURN.

It also includes the ability to build new XML documents from the query results. It may use an XML-if the structure (elements and attributes) is known in advance or can be used dynamically to construct expressions. All these constructs are defined as expressions in the language, and can be arbitrarily nested. The language is based on the model tree information in the XML document, which consists of seven different types of nodes: elements, attributes, text nodes, comments, processing instructions, namespaces and document nodes.

Advertisement

---

The type system used by the language considers all values ??as strings, assuming a single value as a sequence of a single element. The elements of a sequence can be atomic values ??or nodes. Atomic values ??may be integers, strings, booleans, numbers etc. The complete list of available types is based on the primitives defined in XML Schema.

XQuery 3-0

XQuery 1.0 does not include the ability to update XML documents. Nor can perform text searches. Higher-order functions first appeared in the drafts for XQuery 3.0

 

Applications and Implementations of XQuery 3.0

 

  1. Extracting information from a database for use in a web service.
  2. Generating summary reports on data stored in a XML database.
  3. Searching textual documents on the Web for relevant information and compiling the results.
  4. Selecting and transforming XML data to XHTML to be published on the Web.
  5. Pulling data from databases to be used for the application integration.
  6. Splitting up a XML document that represents multiple transactions into multiple XML documents.

 

Although XQuery was initially conceived as a query language for large collections of XML documents, it is also capable of transforming individual documents. As such, its capabilities overlap with XSLT, which was designed expressly to allow input XML documents to be transformed into HTML or other formats. BaseX, eXist, Saxon, Sirix, XQilla, Zorba are example projects, live demo can be found here :

 

Vim
1
http://www.zorba.io/html/demo

 

This xml file :

 

Vim
1
http://www.ibiblio.org/xml/examples/shakespeare/hamlet.xml

 

can be converted to HTML with XQuery 3.0 :

 

Tagged With XQuery Extracting information from a database for use in a web service example
Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to XQuery 3.0 : The Query and Functional Programming Language

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • Changing Data With cURL for OpenStack Swift (HP Cloud CDN)

    Changing Data With cURL For Object is Quite Easy in OpenStack Swift. Here Are Examples With HP Cloud CDN To Make it Clear. Official Examples Are Bad.

  • WordPress & PHP : Different AdSense Units on Mobile Devices

    Here is How To Serve Different AdSense Units on Mobile Devices on WordPress With PHP. WordPress Has Function Which Can Be Used In Free Way.

  • Theoretical Foundations of Big Data : Part 3

    Theoretical Foundations of Big Data is third and final part of our series of articles. We have talked about Data Mining, OLAP & softwares.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Market Segmentation in BriefSeptember 20, 2023
  • What is Booting?September 18, 2023
  • What is ncurses?September 16, 2023
  • What is JTAG in Electronics?September 15, 2023
  • iPhone 15 Pro Max Vs Samsung Galaxy S22/S23 UltraSeptember 14, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy