RE: Implicit vs explicit elements (for lack of something more accurate)

> 
> 
> I'm trying to understand why an XML Schema cannot be written to
> generate a binding that will allow both of the following snippets:
> 
> <value>Implicit string text</value>
> <value><string>An explicit string element</string></value>
> 

If you're looking for a historical analysis of why the design has this
limitation, then the answer is almost certainly that the same restriction is
present in DTDs and no-one asked for it to be removed.

(You can of course allow both these forms by allowing mixed content, but
that also allows other things which I assume you don't want.)

Michael Kay

Received on Tuesday, 24 August 2004 17:29:39 UTC