Hi all
Am just getting to grips with well-formed XML and DTD's and have got a query. Here's a section of the DTD code I'm creating....
<!ELEMENT when (day, date, month)>
<!ELEMENT day (#PCDATA)>
<!ELEMENT date (#PCDATA)>
<!ELEMENT month (#PCDATA)>
Can anyone tell me, is there a way to make sure that the elements can only be specific values? E.g. If the 'day' element is anything but "Friday" or "Saturday" then be invalid?
I know it's do-able for Attributes but can't find anything at all for Elements.
Cheers