
Part of a document (for example, those that might be generated by an element constructor expression). Nodes are also used to represent document fragments - i.e. Node values represent the parts of a XML document, or more generally an XML infoset. The XQuery language also allows you to create infoset items, using element constructor expressions or pre-defined functions. A DOM is a popular data structure API used to encode and manipulate XML data - i.e. Manipulates a DOM (Document Object Model).

The Canonical XML for the above example is:Ī parsed XML file results in an infoset, but there can also be synthetic infosets that are constructed from other sources, such as a database, or created by a program that have the same infoset) translate to the same canonical XML Two XML documents that are "logically equivalent" XML" recommendation is a related standard in that it specifiesĪ unique ("canonical") way to convert an XML infoset (back) into an XML files that are different at the character level but that have the same information set or infoset are for most practical purposes equivalent. It is intended to be useful for defining other XML-related standards, This is a conceptual standard: Itĭoes not define any file formats or programming interfaces, but rather it defines the interpretation of an XML file. Information content of an XML document as a document item that contains nested element items, which in turn contain namespace, attribute, character and other items. The XQuery data model is based on the XML Information Set standard (W3C Recommendation 24 October 2001, ). On the way we will touch on a fair bit of background material, including XML Schemas and XML infosets.

In this article we will look more deeply into the XQuery/XPath data model and type We have earlier looked at the values (nodes, primitives, and sequences) that XQuery works with. The XQuery Data Model and Types by Per Bothner If you find a mistake, or something is unclear, please email so I can fix the text.
