xs:anyType
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
Get XQuery now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.