Well-formed code of XML is given below which is showing the hierarchy of different courses in Computer Science Department of University. I have convert the xml code into dtd code. Where am I wrong.
My XML Code
<?xml version="1.0" encoding="UTF-8"?>
<University Name="Virtual University of Pakistan">
<Departments>
<Department name="Computer Science">
<Courses>
<Under-Graduate>
<Course name="Introduction to Computing">CS101</Course>
<Course name="Introduction to Programming ">CS201</Course>
<Course name="Data Structures">CS301</Course>
<Course name="Object Oriented Programming">CS304</Course>
<Course name="Data Communication">CS601</Course>
</Under-Graduate>
<Graduate>
<Course name="Theory of Computation">CS701</Course>
<Course name="Advanced Operating Systems">CS703</Course>
<Course name="Software Quality Assurance">CS706</Course>
<Course name="Distributed DBMS">CS712</Course>
<Course name="Advanced Computer Networks">CS716</Course>
</Graduate>
</Courses>
</Department>
</Departments>
My DTD Code
<!DOCTYPE University>
<!ELEMENT Name "Virtual University of Pakistan">
<!ELEMENT Departments>
<!ELEMENT Department name "Computer Science">
<!ELEMENT Courses>
<!ELEMENT Under-Graduate>
<!ELEMENT name "Introduction to Computing">
<!ENTITY Course "CS101">
<!ELEMENT name "Introduction to Programming">
<!ENTITY Course "CS201">
<!ELEMENT name "Data Structures">
<!ENTITY Course "CS301">
<!ELEMENT name "Object Oriented Programming">
<!ENTITY Course "CS304">
<!ELEMENT name "Data Communication">
<!ENTITY Course "CS601>
<!ELEMENT Graduate>
<!ELEMENT name "Theory of Computation">
<!ENTITY Course "CS701">
<!ELEMENT name "Advanced Operating Systems">
<!ENTITY Course "CS703">
<!ELEMENT name "Software Quality Assurance">
<!ENTITY Course "CS706">
<!ELEMENT name "Distributed DBMS">
<!ENTITY Course "CS712">
<!ELEMENT name "Advanced Computer Networks">
<!ENTITY Course "CS716">
I have created an XML code and convert that XML code into DTD code. So Where am I wrong in my DTD code.