You are better of using xsd:all in W3C Schema. In fact, you are generally
better off using W3C Schema. But here is how you would do it for the case
when you have only two items:

<!ELEMENT PARENT_ITEM ((ITEM1, ITEM2)|(ITEM2, ITEM1))>

The number of parts in the or clause is N! So the bigger N is the more
complicated your definition will be.

-----Original Message-----
From: Chakradhar [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 05, 2001 7:01 PM
To: [EMAIL PROTECTED]
Subject: specifing elements in arbitary order in DTD


Hello,

Is there any way I can descibe Elements in DTD, where its child elements
SHOULD BE present but can
arrive in any arbitary order.

I cant use ANY as that will allow some undesired elements to come through.

For eg.,
<!ELEMENT PARENT_ITEM (ITEM1, ITEM2, ITEM3)>
<!ELEMENT ITEM1 (#PCDATA)>
<!ELEMENT ITEM2 (#PCDATA)>
<!ELEMENT ITEM3 (#PCDATA)>

Or is this where XMLSchema has an upper hand.

And help is appreciated. Thanks.

-Chak


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to