W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > January to March 2001

anyType

From: Ulrike Schäfer <ulrike.schaefer@infotakt.de>
Date: Fri, 19 Jan 2001 13:14:02 +0100
To: <www-xml-schema-comments@w3.org>
Message-ID: <AHEMKHKBBCGCNFPACJCMCEAACCAA.ulrike.schaefer@infotakt.de>
The XML Schema Part 0: Primer says:

===
<xsd:element name="anything" type="xsd:anyType" />

The content of the element declared in this way is unconstrained, so the
element value may be 423.46, but it may be any other sequence of characters
as well, or indeed a mixture of characters and elements.
===

I am not quite sure which kinds of elements anyType may contain:
a) all elements that are *declared* in the current schema
b) any wellformed elements (may, but don't have to be declared)

I assume b). Is that correct?

If so, it seems to me that anyType can be used in a similiar way like the
"open" schema concept in one of the earlier schema submissions (sox, I
guess): Some structures in the document can be designed as valid, some as
wellformed. Is that so?

Thanks & kind regards
--
Ulrike
Received on Friday, 19 January 2001 07:13:27 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:12:49 GMT