[XML-DEV Mailing List Archive Home]
[By Thread]
[By Date]
Re: [xml-dev] DTD element type "ANY" vs. XML Schema element type "anyType"
- To: xml-dev@...
- Subject: Re: [xml-dev] DTD element type "ANY" vs. XML Schema element type "anyType"
- From: richard@... (Richard Tobin)
- Date: Sun, 20 Feb 2005 17:26:33 +0000 (GMT)
- Cc:
- In-reply-to: <E1D2txO-0000hC-Py@...>
- Organization: HCRC, University of Edinburgh
In article <E1D2txO-0000hC-Py@...> you write:
>"It is completely unconstrained and equivalent to the ANY keyword in
>DTDs, but in XML Schema it is known as the anyType."
The schema type anyType is the most general complex type. It's
similar to ANY in DTDs but is not meant to be precisely equivalent.
As well as not requiring that child elements be declared, it allows
any attribute, which is also something you can't do in DTDs.
If you want to allow any declared element, use a wildcard with
process-contents="strict".
-- Richard
|