[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[xml-dev] Re: XML Schema ?
- From: Kohsuke KAWAGUCHI <kohsukekawaguchi@yahoo.com>
- To: "Gregory M. Messner" <gmessner@breezefactor.com>
- Date: Wed, 12 Sep 2001 16:32:18 -0700
> Again notice that each particle is optional but the content model itself is
> not. Without even considering XML Schema, would the following be valid XML?
>
> DTD fragment:
> <!ELEMENT A (B?, C?, D?)>
>
> XML document fragment:
> <A></A>
Yes, of course. I haven't re-read the spec for this answer, but there
are literally hundreds of XML vocabularies that uses empty element. For
one, in XHTML, we have <br/> and <hr/>.
regards,
----------------------
K.Kawaguchi
E-Mail: kohsukekawaguchi@yahoo.com