OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] DTD element type "ANY" vs. XML Schema element type "anyTyp

[ Lists Home | Date Index | Thread Index ]

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




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS