XML Schema Complete Reference, The
by Cliff Binstock, Chris Galtenberg, Mike Wooding, Chris Dix, Mitchell Smith, Dave Peterson
8.4. The any Element
The any element provides a mechanism for specifying elements with what the XML Schema Recommendation calls a wildcard. The element wildcard permits a complex type to loosely specify how an XML validator validates elements in an XML instance. This is in sharp contrast to the normal element element, which succinctly specifies element type.
An element wildcard generally specifies a set of namespaces against which the XML validator may validate. The XML validator searches each namespace for global element types that might correspond to the elements referenced in the XML instance.
Listing 8.12 is an element type that specifies the XML instance may contain a reference to a set of any known element types in any known namespaces. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access