[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Element Order significance in XML
- From: John Cowan <firstname.lastname@example.org>
- To: "Bhatt, Avi" <ABhatt@Eventra.com>
- Date: Thu, 26 Jul 2001 13:23:14 -0400
Bhatt, Avi wrote:
> In particular, how can we
> specify that ELEMENT BIG can have either 0 or 1 of SMALL1, SMALL2... in any
> random order?
> <!ELEMENT BIG (SMALL1?,SMALL2?,SMALL3?,SMALL4?,SMALL5?)>
You can't using DTDs. SGML had this capability, but it was removed from
XML. XML Schemas restore the capability.
My advice: Learn to live with fixed order. The additional flexibility
is rarely worthwhile.
There is / one art || John Cowan <email@example.com>
no more / no less || http://www.reutershealth.com
to do / all things || http://www.ccil.org/~cowan
with art- / lessness \\ -- Piet Hein