[Zope] XML model

Thomas B. Passin tpassin@mitretek.org
Fri, 3 Aug 2001 15:07:35 -0400


<!ELEMENT X ((a,b),((c,d)|(e,f)))>

That is, each group must be grouped in parentheses.  Don't forget XML is
case-sensitive - so don't use <a> if your DTD says A.

Cheers,

Tom P

[Macdonald Jeremy]

> I am trying to model the following:
>
> <!ELEMENT X (A , B), (C, D | E, F)
>
> which I can't do as the above as I can only use one kind of connector.
>
> I am trying to get the instance to be either:
> <x><a> <b> <c> <d></x>
>
> or
>
> <x><a> <b> <e> <f></x>
>
> Any / all ideas would be welcome.
>