XML data model

The XML data model follows the XPath 2.0 and the XQuery 1.0 data model. This data model provides an abstract representation of one or more XML documents or fragments.

The purpose of the data model is to define all permissible values of expressions in XPath, including values that are used during intermediate calculations. Every XPath expression takes as its input an instance of the data model and returns an instance of the data model. The XML data model is described in terms of sequences and items, atomic values, and nodes.