Overview of the type system

The type system for XQuery includes simple atomic types and complex types. A simple atomic type is a primitive or derived atomic type that does not contain elements or attributes. A complex type can contain mixed content or element-only content.