Can anyone help me to create an xml document from a scenario? The scenario is to 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.
↧