Create a well formed XML and DTD documents used to represent
Create a well formed XML, and DTD documents used to represent courses in a university. The university has numerous courses including but not limited to Computer Science, Math, Accounting, and Biology. The required information stored on each course is: startdate, description, teacher, location, book and the student’s attending the class. The teacher has a unique id to identify who the teacher is. The teacher contains information including firstname, lastname, email, phone and office location. The email is optional but can occur only once, while phone can appear numerous times per teacher but must appear at least once. Each course location has a unique id, and is in one of three buildings (VIN, DUNL, or DPL) and is on a certain floor (1 – 4). The course may actually be in more than one building or be on different floors. Each course may have zero students registered or up to 24 students registered. The information stored on student is the student’s name, email address and student id number. The startdate of the course contains month, day, and year. The course description stores the catalog statement (description of the course) and has an option attribute of required. The attribute of required can only contain the values yes or no.
Create a CSS file that outlines the XML document previously created. You are not limited to using the styles that are listed below and are actually encouraged to be creative in your design. The XML document should turn out looking like an outline. The course name should be to the far left margin (larger in size than the other text, change in color, and be in bold). All other child elements to course should be indented from the left margin. All grandchildren elements should de indented even further from the left margin than the child elements. The book and location elements should have different styles (color, style, font, etc) from the rest of the elements. The child elements of teacher and startdate should also have their own styles. Each course should be separated by a line (____________________________ ). A minimum of four examples should be used in the XML document.
What is the root element?
What is the child element of the root element and what symbol should be used?
What are the child elements of course and what symbol should be used for each?
What are the child elements of teacher, and what symbols should be used for each element?
What are the child elements of startdate, and what symbols should be used for each element?
What are the child elements of student, and what symbols should be used for each element?
student’s name, email address and student id number
What is/are the attribute(s) of courses?
What is/are the attribute(s) of teacher?
What is/are the attribute(s) of location?
What is/are the attribute(s) of student?
Are there any enumerated attributes? If so what are they?
In the CSS, what property should be used to create a left margin?
In the CSS, what property should be used to create the look of a new line?
Solution
The root element is the first element of the document. It defines what type of file it shall be.For example if Html is the first element of document then it would be a html document. However in case of XML ,the root element could be anything.Once the root element is defined in the xml, there could be one root element.
The child elements are branches that comes out of the root elements. This is based on what we align as a root element and even child elements can have further branches.Therefore for root element course, the child element could be subjects and type of course methodology could be its attribute. Child elements for root element teachers be type of subjects a teacher can teach, type of classes aligned to a teacher & types of students or course level.Attribute of teacher could be the level of qualification the teacher posses.

