Sveriges Riksbank

In Data-processing, XML Query or XQuery are a Query language thus making it possible to extract from information of a document XML.

XML Query is a specification of W3C. Semantically near to SQL, XML Query uses syntax XPath to address specific parts of a document XML.

Syntaxes

There exist two distinct syntaxes for XML Query:

  • the syntax FLWR (to pronounce flower), whose name comes from the four principal instructions which compose it ( for , let , where and return )

  • syntax XQueryX (for “XML Syntax for XML Query”), consisted a document XML, and so verbeuse.

A Requête XML Query turns over the fragment of the document corresponding to the criteria. The resulting one is thus also a document XML, however being able to have several elements roots.

Examples

That is to say file XML following, located at URL http://www.example.com/ and named exemple.xml:

Dupont Alphonse 12/23/1975 Dupont Isabelle 3/12/1967

Following request FLWR:

for $b in document (" http://example.com/exemple.xml")/liste where $b/nom/text () = " Dupont" return $b/prenom $b/date_naissance

will return the following result:

Alphonse 12/23/1975 Isabelle 3/12/1967

See too

Internal bonds

External bonds

  • the recommendation of the W3C ''' XQuery 1.0 ''' of January 23rd, 2007
  • the open processor source XQuery 1.0 of Saxonica

Random links:99e regiment of infantry of line | -824 | Kuranda | Boland Riders | Brahimi government