[Home] [By Thread] [By Date] [Recent Entries]

  • To: xml-dev@l...
  • Subject: Re: DTD element type "ANY" vs. XML Schema element type "anyType"
  • From: richard@i... (Richard Tobin)
  • Date: Sun, 20 Feb 2005 17:26:33 +0000 (GMT)
  • Cc:
  • In-reply-to: <E1D2txO-0000hC-Py@s...>
  • Organization: HCRC, University of Edinburgh

In article <E1D2txO-0000hC-Py@s...> 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

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member