Re: [ILUG] [OT] XML element ordering

From: Padraig Brady (padraig.brady at domain corvil.com)
Date: Tue 10 Sep 2002 - 09:45:07 IST


Padraig Brady wrote:
> Justin MacCarthy wrote:
>
>> Elements followed by commas are expected to be in the order the
>> appear in
>> the DTD.
>>
>> <!ELEMENT name (attr_one*, attr_two, attr_three?, attr_four )>
>>
>> expects the elements in order but
>>
>> <!ELEMENT name (attr_one* attr_two attr_three? attr_four )>
>>
>> doesn't.

Are you sure about this?
I looked in XML in a Nutshell and there was no mention
of this syntax. Also comp.text.xml suggested
if you wanted unordered stuff then you must
use attributes rather than elements?

>>
>> In XML Schema the equiv. is <sequence>
>>
>> Justin

Padraig.



This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:18:44 GMT