Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DTD Element defintion help

Status
Not open for further replies.

eswhite

Programmer
Jul 6, 2000
18
US
Hello,

How do I define an element so that it will only validate if it contains at least one or more child elements in any order?

Example:

<elt1><elt2/><elt3/></elt1>
<elt1><elt3/><elt2/></elt1>
<elt1><elt2/></elt1>
<elt1><elt3/></elt1>

would be the only valid uses.

I would rather not have to define element in DTD like this:

<!ELEMENT elt1 ((elt2, elt1) | (elt2, elt1) | (elt2) | (elt1))>

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top