Jump to content

XQuery and XPath Data Model

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Mauro Bieg (talk | contribs) at 22:39, 16 August 2012. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
The XDM type hierarchy

The XQuery and XPath Data Model (XDM) is the data model shared by the XPath 2.0, XSLT 2.0 and XQuery programming languages. It is a W3C recommendation and forms an integral part of all three languages. Originally, it was based on the XPath 1.0 data model which in turn is based on the XML Information Set. The XDM consists of flat sequences that contain zero or more items. Items can be typed or untyped and include atomic values as well as XML nodes (including elements, attributes and text nodes). Instances of the XDM can optionally be XML schema-validated.