Need to make a dtd for this xml code. There seems to be errors that come up, tryed it on w3 xml validator and it gives an error message.
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE Timetable [
<!ELEMENT Timetable (week, timecode)>
<!ELEMENT week (day)>
<!ELEMENT timecode (time)>
<!ELEMENT time (#PCDATA)>
<!ELEMENT day (#PCDATA)>
<!ATTLIST day id CDATA #IMPLIED>
<!ATTLIST time id CDATA #IMPLIED>
]>
<Timetable>
<week>
<day id="mo">Monday</day>
<day id="tu">Tuesday</day>
<day id="we">Wednesday</day>
<day id="th">Thursday</day>
<day id="fr">Friday</day>
<day id="sa">Saturday</day>
<day id="su">Sunday</day>
</week>
<timecode>
<time id="9">09.00</time>
<time id="10">10.00</time>
<time id="11">11.00</time>
<time id="12">12.00</time>
<time id="1">1.00</time>
<time id="2">2.00</time>
<time id="3">3.00</time>
<time id="4">4.00</time>
</timecode>
</Timetable>
I wanted a tree structure which shows timetable> week > day > time
but couldn't get it work. If its possible to do this then be much appreciated.