March 2007
Intermediate to advanced
512 pages
21h 15m
English
The type xs:anyType is given to some element nodes without a more specific type. The difference between xs:anyType and xs:untyped is that an element of type xs:anyType may contain other elements that have specific types. Elements of type xs:untyped, on the other hand, always have children that are also untyped. An element is assigned the type xs:anyType if:
Validation was attempted but the element was found to be invalid (or partially valid). Some implementations may allow the query evaluation to continue even if validation fails.
The element is the result of an element constructor, and construction mode is set to preserve.

Figure B-1. Built-in types